opnsense-src/sys/dev/vt
Jean-Sébastien Pédron 608b148760 vt(4): Skip vt_flush() for nested panics
[Why]
If there is a problem with DRM drivers or in their integration with
vt(4) and displaying something on the console triggers a panic, there is
a high chance that displaying that panic will trigger another one,
recursively.

[How]
If vt_flush() is called and it detects is is called resursively from
another panic, it return immediately, doing nothing, to avoid the risk
of triggering another panic.

Reviewed by:	manu
Approved by:	manu
Differential Revision:  https://reviews.freebsd.org/D42056

(cherry picked from commit 049e3fba04e82f840cc43080edade0ed415fee72)
2024-02-17 23:58:34 +03:00
..
colors sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
font sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
hw sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
logo sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vt.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vt_buf.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vt_consolectl.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vt_core.c vt(4): Skip vt_flush() for nested panics 2024-02-17 23:58:34 +03:00
vt_cpulogos.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vt_font.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vt_sysmouse.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00