]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vt: call driver's postswitch when panicking on ttyv0
authorGreg V <greg@unrelenting.technology>
Sat, 24 Apr 2021 11:53:34 +0000 (14:53 +0300)
committerToomas Soome <tsoome@FreeBSD.org>
Mon, 20 Sep 2021 17:29:37 +0000 (20:29 +0300)
commitc937a405bdce2fd12c534446a8cc9e5548dd27eb
treef426961ad5d4c5c58946876bc42bd6767a48324b
parent9e0c051249e3832e0f6a0067058ff9735677f3d5
vt: call driver's postswitch when panicking on ttyv0

In vt_kms, the postswitch callback restores fbdev mode when
panicking or entering the debugger. This ensures that even when
a graphical applicatino was running on the first tty, simple framebuffer
mode would be restored and the panic would be visible instead
of the frozen GUI. But vt wouldn't call the postswitch callback
when we're already on the first tty, so running a GUI on it
would prevent you from reading any panics.

Reviewed by: tsoome
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D29961
sys/dev/vt/vt_core.c