devvga: re-render text from kmesg after resize

This commit is contained in:
cinap_lenrek 2017-11-26 04:49:30 +01:00
parent 28e9566dc5
commit af20ba6746
3 changed files with 12 additions and 10 deletions

View file

@ -217,6 +217,8 @@ vgascreenwin(VGAscr* scr)
qunlock(&drawlock);
vgascreenputs(kmesg.buf, kmesg.n);
screenputs = vgascreenputs;
}

View file

@ -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)
{

View file

@ -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;