diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-24 11:24:57 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-07-14 14:31:16 -0400 |
commit | ebf03f7fb15a3d04950a96e62901e420c2e2d425 (patch) | |
tree | 599e126f416544cb0eb2fe657b946bd203cac992 /src/output.c | |
parent | 2a9aeabdfb34374ecac25e7a8d21c9e368618cd4 (diff) | |
download | seabios-ebf03f7fb15a3d04950a96e62901e420c2e2d425.tar.gz |
coreboot: add cbmem console support
Add support for logging to the coreboot cbmem console.
Limitation: only supported in 32bit mode. Use 'cbmem -c'
to see the logs (coreboot and seabios) after bootup.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/output.c')
-rw-r--r-- | src/output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/output.c b/src/output.c index d548766d..fb2dd76c 100644 --- a/src/output.c +++ b/src/output.c @@ -81,6 +81,8 @@ putc_debug(struct putcinfo *action, char c) if (CONFIG_DEBUG_IO && runningOnQEMU()) // Send character to debug port. outb(c, GET_GLOBAL(DebugOutputPort)); + if (!MODESEGMENT) + debug_cbmem(c); if (c == '\n') debug_serial('\r'); debug_serial(c); |