shithub: riscv

Download patch

ref: af20ba67460b79f7c4aee7014756205baba29cd5
parent: 28e9566dc539244b3b429c21c556d656733839c2
author: cinap_lenrek <[email protected]>
date: Sat Nov 25 23:49:30 EST 2017

devvga: re-render text from kmesg after resize

--- a/sys/src/9/pc/vga.c
+++ b/sys/src/9/pc/vga.c
@@ -217,6 +217,8 @@
 
 	qunlock(&drawlock);
 
+	vgascreenputs(kmesg.buf, kmesg.n);
+
 	screenputs = vgascreenputs;
 }
 
--- a/sys/src/9/port/devcons.c
+++ b/sys/src/9/port/devcons.c
@@ -63,16 +63,6 @@
 			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)
 {
--- a/sys/src/9/port/portdat.h
+++ b/sys/src/9/port/portdat.h
@@ -991,3 +991,13 @@
 #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;