summaryrefslogtreecommitdiff
path: root/sys/src/9/port/portdat.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-11-26 04:49:30 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-11-26 04:49:30 +0100
commitaf20ba67460b79f7c4aee7014756205baba29cd5 (patch)
tree4702b330982337a74a8e73659406bf7bf0dbaea6 /sys/src/9/port/portdat.h
parent28e9566dc539244b3b429c21c556d656733839c2 (diff)
devvga: re-render text from kmesg after resize
Diffstat (limited to 'sys/src/9/port/portdat.h')
-rw-r--r--sys/src/9/port/portdat.h10
1 files changed, 10 insertions, 0 deletions
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;