opnsense-src/sys/dev/vt
Mark Johnston 6c7e4d72b1 vt: Use a taskqueue to clear splash_cpu logos
vt_fini_logos() calls vtbuf_grow(), which reallocates the console
window's buffer using malloc(M_WAITOK).  Because vt_fini_logos() is
called via a callout, we end up panicking if INVARIANTS is enabled.

Fix the problem simply by clearing the logos using a timed taskqueue.
taskqueue_thread is formally allowed to sleep; of course, if we actually
end up sleeping to satisfy the allocation, then we have bigger problems.

PR:		260896
Reviewed by:	emaste
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D33932
2022-01-19 10:53:15 -05:00
..
colors vt: export RGB offsets with FBIO_GETRGBOFFS 2021-11-25 16:39:25 -03:00
font Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
hw fb: Add new FBTYPE_EFIFB 2021-12-06 11:28:03 +01:00
logo Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
vt.h vt(4): Connect to teken's TP_SETBELLPD 2021-11-03 16:03:51 -06:00
vt_buf.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
vt_consolectl.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
vt_core.c vt: export RGB offsets with FBIO_GETRGBOFFS 2021-11-25 16:39:25 -03:00
vt_cpulogos.c vt: Use a taskqueue to clear splash_cpu logos 2022-01-19 10:53:15 -05:00
vt_font.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
vt_sysmouse.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00