search for: serial_init_preirq

Displaying 3 results from an estimated 3 matches for "serial_init_preirq".

2013 Jan 30
1
[PATCH v2] xen: print "debug=y|n" during hypervisor startup
...n/drivers/char/console.c --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -577,6 +577,11 @@ void __init console_init_preirq(void) { char *p; int sh; +#ifndef NDEBUG + char debug = ''y''; +#else + char debug = ''n''; +#endif serial_init_preirq(); @@ -608,10 +613,10 @@ void __init console_init_preirq(void) spin_lock(&console_lock); __putstr(xen_banner()); spin_unlock(&console_lock); - printk("Xen version %d.%d%s (%s@%s) (%s) %s\n", + printk("Xen version %d.%d%s (%s@%s) (%s) debug=%c %s\n"...
2012 May 24
0
[PATCH RFC 2/9] console: prepare for non-COMn port support
...SERHND_IDX; seridx++ ) { if ( (irq = serial_irq(seridx)) < 0 ) continue; --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -539,6 +539,7 @@ void printk(const char *fmt, ...) void __init console_init_preirq(void) { char *p; + int sh; serial_init_preirq(); @@ -551,8 +552,9 @@ void __init console_init_preirq(void) vga_init(); else if ( !strncmp(p, "none", 4) ) continue; - else if ( strncmp(p, "com", 3) || - (sercon_handle = serial_parse_handle(p)) == -1 ) + else...
2007 May 15
3
[PATCH 1/12] Add suspend/resume to devices owned by Xen
...4,26 @@ void __warn(char *file, int line) dump_execution_state(); } +static void dummy_steal_fn(const char *str) +{ + return; +} + +int console_suspend(void) +{ + console_steal(sercon_handle, dummy_steal_fn); + serial_suspend(); + return 0; +} + +int console_resume(void) +{ + serial_init_preirq(); + serial_init_postirq(); + console_giveback(1); + return 0; +} + /* * Local variables: * mode: C diff -r 3ef0510e44d0 xen/drivers/char/serial.c --- a/xen/drivers/char/serial.c Tue May 08 10:21:23 2007 +0100 +++ b/xen/drivers/char/serial.c Mon May 14 15:05:28 2007 -0400 @@ -381,6 +3...