direct-io.hg

changeset 11523:6486bc1937a4

[POWERPC][XEN] Sync console around program exceptions

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Fri Sep 15 18:19:46 2006 -0400 (2006-09-15)
parents 1fae74cd3963
children fd79d6295111
files xen/arch/powerpc/exceptions.c
line diff
     1.1 --- a/xen/arch/powerpc/exceptions.c	Thu Sep 14 22:06:15 2006 -0400
     1.2 +++ b/xen/arch/powerpc/exceptions.c	Fri Sep 15 18:19:46 2006 -0400
     1.3 @@ -24,6 +24,7 @@
     1.4  #include <xen/sched.h>
     1.5  #include <xen/serial.h>
     1.6  #include <xen/gdbstub.h>
     1.7 +#include <xen/console.h>
     1.8  #include <asm/time.h>
     1.9  #include <asm/processor.h>
    1.10  
    1.11 @@ -60,6 +61,8 @@ void program_exception(struct cpu_user_r
    1.12  #else /* CRASH_DEBUG */
    1.13      int recover = 0;
    1.14  
    1.15 +    console_start_sync();
    1.16 +
    1.17      show_registers(regs);
    1.18      printk("dar 0x%016lx, dsisr 0x%08x\n", mfdar(), mfdsisr());
    1.19      printk("hid4 0x%016lx\n", regs->hid4);
    1.20 @@ -71,5 +74,7 @@ void program_exception(struct cpu_user_r
    1.21  
    1.22      if (!recover)
    1.23          panic("%s: 0x%lx\n", __func__, cookie);
    1.24 +
    1.25 +    console_end_sync();
    1.26  #endif /* CRASH_DEBUG */
    1.27  }