HomeFreeBSD

vt: call driver's postswitch when panicking on ttyv0

Description

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
Differential Revision: https://reviews.freebsd.org/D29961

(cherry picked from commit c937a405bdce2fd12c534446a8cc9e5548dd27eb)

Details

Provenance
val_packett.coolAuthored on Apr 24 2021, 11:53 AM
tsoomeCommitted on Oct 3 2021, 9:46 PM
Reviewer
tsoome
Differential Revision
D29961: vt: call driver's postswitch when panicking on ttyv0
Parents
rGe6e348e49c0a: Unify console output.
Branches
Unknown
Tags
Unknown