diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-11-26 04:49:30 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-11-26 04:49:30 +0100 |
commit | af20ba67460b79f7c4aee7014756205baba29cd5 (patch) | |
tree | 4702b330982337a74a8e73659406bf7bf0dbaea6 /sys/src/9 | |
parent | 28e9566dc539244b3b429c21c556d656733839c2 (diff) |
devvga: re-render text from kmesg after resize
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/pc/vga.c | 2 | ||||
-rw-r--r-- | sys/src/9/port/devcons.c | 10 | ||||
-rw-r--r-- | sys/src/9/port/portdat.h | 10 |
3 files changed, 12 insertions, 10 deletions
diff --git a/sys/src/9/pc/vga.c b/sys/src/9/pc/vga.c index fe903f0a0..430ce89fc 100644 --- a/sys/src/9/pc/vga.c +++ b/sys/src/9/pc/vga.c @@ -217,6 +217,8 @@ vgascreenwin(VGAscr* scr) qunlock(&drawlock); + vgascreenputs(kmesg.buf, kmesg.n); + screenputs = vgascreenputs; } diff --git a/sys/src/9/port/devcons.c b/sys/src/9/port/devcons.c index 0d755bdc1..79698c408 100644 --- a/sys/src/9/port/devcons.c +++ b/sys/src/9/port/devcons.c @@ -63,16 +63,6 @@ prflush(void) break; } -/* - * Log console output so it can be retrieved via /dev/kmesg. - * This is good for catching boot-time messages after the fact. - */ -struct { - Lock lk; - char buf[16384]; - uint n; -} kmesg; - static void kmesgputs(char *str, int n) { diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h index 9cb495128..059af4e60 100644 --- a/sys/src/9/port/portdat.h +++ b/sys/src/9/port/portdat.h @@ -991,3 +991,13 @@ enum #pragma varargck type "V" uchar* #pragma varargck type "E" uchar* #pragma varargck type "M" uchar* + +/* + * Log console output so it can be retrieved via /dev/kmesg. + * This is good for catching boot-time messages after the fact. + */ +struct { + Lock lk; + uint n; + char buf[16384]; +} kmesg; |