ia64/xen-unstable

changeset 17847:ec56331c056a

keyhandler: When dumping all-CPU register state, wnter console sync
mode so we do not drop any critical debug data.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 12 16:34:25 2008 +0100 (2008-06-12)
parents 4ac0898df538
children 6b1795ee1b19
files xen/common/keyhandler.c
line diff
     1.1 --- a/xen/common/keyhandler.c	Thu Jun 12 16:18:31 2008 +0100
     1.2 +++ b/xen/common/keyhandler.c	Thu Jun 12 16:34:25 2008 +0100
     1.3 @@ -105,6 +105,9 @@ static void dump_registers(unsigned char
     1.4  {
     1.5      unsigned int cpu;
     1.6  
     1.7 +    /* We want to get everything out that we possibly can. */
     1.8 +    console_start_sync();
     1.9 +
    1.10      printk("'%c' pressed -> dumping registers\n", key);
    1.11  
    1.12      /* Get local execution state out immediately, in case we get stuck. */
    1.13 @@ -120,6 +123,8 @@ static void dump_registers(unsigned char
    1.14      }
    1.15  
    1.16      printk("\n");
    1.17 +
    1.18 +    console_end_sync();
    1.19  }
    1.20  
    1.21  static void halt_machine(unsigned char key, struct cpu_user_regs *regs)