devvga: re-render text from kmesg after resize
This commit is contained in:
parent
28e9566dc5
commit
af20ba6746
3 changed files with 12 additions and 10 deletions
|
@ -217,6 +217,8 @@ vgascreenwin(VGAscr* scr)
|
|||
|
||||
qunlock(&drawlock);
|
||||
|
||||
vgascreenputs(kmesg.buf, kmesg.n);
|
||||
|
||||
screenputs = vgascreenputs;
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue