debuggers.hg
changeset 11089:485baffca4fd
[CONSOLE] Always specify CON_ENABLED in Linux ocnsole driver.
I cannot think of any circumstance that the Xen console device would
not have CON_ENABLED. With out this, DomUs that panic() before the
init process has started (and maybe even after) do not get output hi
priority log_levels (like panic()) from LOG_BUF().
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
I cannot think of any circumstance that the Xen console device would
not have CON_ENABLED. With out this, DomUs that panic() before the
init process has started (and maybe even after) do not get output hi
priority log_levels (like panic()) from LOG_BUF().
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
author | kfraser@localhost.localdomain |
---|---|
date | Thu Aug 10 10:39:58 2006 +0100 (2006-08-10) |
parents | cfd9d4601022 |
children | ec4979587156 |
files | linux-2.6-xen-sparse/drivers/xen/console/console.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/drivers/xen/console/console.c Thu Aug 10 10:37:15 2006 +0100 1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/console/console.c Thu Aug 10 10:39:58 2006 +0100 1.3 @@ -178,7 +178,7 @@ static struct tty_driver *kcons_device(s 1.4 1.5 static struct console kcons_info = { 1.6 .device = kcons_device, 1.7 - .flags = CON_PRINTBUFFER, 1.8 + .flags = CON_PRINTBUFFER | CON_ENABLED, 1.9 .index = -1, 1.10 }; 1.11 1.12 @@ -192,8 +192,6 @@ static int __init xen_console_init(void) 1.13 if (xc_mode == XC_DEFAULT) 1.14 xc_mode = XC_SERIAL; 1.15 kcons_info.write = kcons_write_dom0; 1.16 - if (xc_mode == XC_SERIAL) 1.17 - kcons_info.flags |= CON_ENABLED; 1.18 } else { 1.19 if (xc_mode == XC_DEFAULT) 1.20 xc_mode = XC_TTY;