opnsense-src/sys/dev/vt
Toomas Soome b79f2bc6c5 vt: panic while changing vt font
Set refcount for loader provided font to 1 to prevent this font
from being released (so we can reset to default).

As we get started with no memory allocator, we set up static font data
for font passed by loader (if there is any). At this time, we also must
set refcount 1, and refcount will get incremented in cnprobe() callback.

At some point the memory allocator will be available, and we will set up
properly allocated font data, but we should not disturb the refcount.

PR: 252833
PR: 253147

(cherry picked and squashed 93ebd6307e and
1912d2b15e)
2021-02-02 12:11:38 +02:00
..
colors vt(4): Use default VGA palette 2018-05-10 17:00:33 +00:00
font Move font related data structured to sys/font.c and update vtfontcvt 2020-06-14 06:58:58 +00:00
hw Add VT driver for VBE framebuffer device 2020-11-30 08:22:40 +00:00
logo Update Conrad Meyer's email 2019-10-17 16:38:44 +00:00
vt.h vt: restore tty when console is ungrabbed 2020-12-31 11:10:11 -06:00
vt_buf.c vt: clean up empty lines in .c and .h files 2020-09-01 21:47:32 +00:00
vt_consolectl.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
vt_core.c vt: panic while changing vt font 2021-02-02 12:11:38 +02:00
vt_cpulogos.c Update Conrad Meyer's email 2019-10-17 16:38:44 +00:00
vt_font.c Move font related data structured to sys/font.c and update vtfontcvt 2020-06-14 06:58:58 +00:00
vt_sysmouse.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00