[SeaBIOS] [PATCH] Introduce config option to select which IO port to send debug output on

Ian Campbell Ian.Campbell at citrix.com
Thu Feb 2 19:24:16 CET 2012


On Mon, 2012-01-30 at 17:23 +0000, julian.pidancet at gmail.com wrote:
> From: Julian Pidancet <julian.pidancet at citrix.com>
> 
> 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 at citrix.com>
> ---
>  src/Kconfig  |   18 ++++++++++++++++++
>  src/output.c |    4 ++--
>  2 files changed, 20 insertions(+), 2 deletions(-)
> 
> diff --git a/src/Kconfig b/src/Kconfig
> index 9ea48bb..f57899b 100644
> --- a/src/Kconfig
> +++ b/src/Kconfig
> @@ -348,4 +348,22 @@ 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.

Can we do
	default 0xe9 if XEN
	default 0x0402
so this just comes out correctly depending on the other options
selected?

Ian.




More information about the SeaBIOS mailing list