diff options
author | Julian Pidancet <julian.pidancet@citrix.com> | 2012-02-01 16:03:24 +0000 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-02-01 22:00:34 -0500 |
commit | 7123d9834d58287d43514d7799ed1a7b34eea243 (patch) | |
tree | fd7b0b1ef1be589370ca6e7572ce1682873209c6 /src/Kconfig | |
parent | 933bb76da7ad08758130a42bab7dc96fb6685b63 (diff) | |
download | seabios-7123d9834d58287d43514d7799ed1a7b34eea243.tar.gz |
Introduce config option to select which IO port to send debug output on
Introduce CONFIG_DEBUG_IO_PORT config option which allow user
to choose on which port to send debug on at configure time.
Bochs users are likely to use 0x402 (default) for debugging purposes,
whereas Xen uses 0xe9, as IO port address.
Signed-off-by: Julian Pidancet <julian.pidancet@citrix.com>
Diffstat (limited to 'src/Kconfig')
-rw-r--r-- | src/Kconfig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig index 42700145..cf0bff09 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -348,4 +348,21 @@ menu "Debugging" default 0x3f8 help Base port for serial - generally 0x3f8, 0x2f8, 0x3e8, or 0x2e8. + + config DEBUG_IO + depends on !COREBOOT && DEBUG_LEVEL != 0 + bool "Special IO port debugging" + default y + help + Some emulators or hypervisors provide with a way to output debug + information by outputing strings in a special port present in the + IO space. + + config DEBUG_IO_PORT + depends on DEBUG_IO + hex "Debug IO port address" + default 0x0402 + help + Bochs uses the 0x0402 address by default, whereas Xen + makes the 0xe9 IO address available for guests use. endmenu |