Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161912988
D29961.id88075.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
537 B
Referenced Files
None
Subscribers
None
D29961.id88075.diff
View Options
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -595,7 +595,13 @@
VT_LOCK(vd);
if (curvw == vw) {
- /* Nothing to do. */
+ /*
+ * Nothing to do, except ensure the driver has the opportunity to
+ * switch to console mode when panicking, making sure the panic
+ * is readable (even when a GUI was using ttyv0).
+ */
+ if ((kdb_active || panicstr) && vd->vd_driver->vd_postswitch)
+ vd->vd_driver->vd_postswitch(vd);
VT_UNLOCK(vd);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 8, 11:28 PM (3 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34864193
Default Alt Text
D29961.id88075.diff (537 B)
Attached To
Mode
D29961: vt: call driver's postswitch when panicking on ttyv0
Attached
Detach File
Event Timeline
Log In to Comment