diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-06-28 11:08:32 +0100 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-07-02 11:14:51 -0400 |
commit | 54f3b25a234719d254b51af0d02e1ab64b8ba463 (patch) | |
tree | 2706cedb987e7cec62e3d12ab8c62af7ff8a950c /src/output.c | |
parent | 9264a2c8c0c6cad6aecedef83ad9ebba1854a161 (diff) | |
download | seabios-hppa-54f3b25a234719d254b51af0d02e1ab64b8ba463.zip seabios-hppa-54f3b25a234719d254b51af0d02e1ab64b8ba463.tar.gz seabios-hppa-54f3b25a234719d254b51af0d02e1ab64b8ba463.tar.bz2 |
Xen: Autodetect debug I/O port at runtime instead of via Kconfig
This allows a common image which supports Xen to still print debug
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'src/output.c')
-rw-r--r-- | src/output.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/output.c b/src/output.c index 37c4942..83de7f4 100644 --- a/src/output.c +++ b/src/output.c @@ -23,6 +23,8 @@ struct putcinfo { #define DEBUG_TIMEOUT 100000 +u16 DebugOutputPort VAR16VISIBLE = 0x402; + void debug_serial_setup(void) { @@ -77,7 +79,7 @@ putc_debug(struct putcinfo *action, char c) return; if (CONFIG_DEBUG_IO) // Send character to debug port. - outb(c, CONFIG_DEBUG_IO_PORT); + outb(c, GET_GLOBAL(DebugOutputPort)); if (c == '\n') debug_serial('\r'); debug_serial(c); |