# HG changeset patch
# User Jimi Xenidis <[EMAIL PROTECTED]>
# Node ID 2d41938a5599faf3b03c74b04e353b9aef1c9a9c
# Parent  88f394c082fc543e7826b880ac5b9694b3b94559
[POWERPC][XEN] Sync console around program exceptions

Signed-off-by: Jimi Xenidis <[EMAIL PROTECTED]>
---
 xen/arch/powerpc/exceptions.c |    5 +++++
 1 files changed, 5 insertions(+)

diff -r 88f394c082fc -r 2d41938a5599 xen/arch/powerpc/exceptions.c
--- a/xen/arch/powerpc/exceptions.c     Fri Sep 15 13:03:27 2006 -0400
+++ b/xen/arch/powerpc/exceptions.c     Fri Sep 15 18:19:46 2006 -0400
@@ -24,6 +24,7 @@
 #include <xen/sched.h>
 #include <xen/serial.h>
 #include <xen/gdbstub.h>
+#include <xen/console.h>
 #include <asm/time.h>
 #include <asm/processor.h>
 
@@ -60,6 +61,8 @@ void program_exception(struct cpu_user_r
 #else /* CRASH_DEBUG */
     int recover = 0;
 
+    console_start_sync();
+
     show_registers(regs);
     printk("dar 0x%016lx, dsisr 0x%08x\n", mfdar(), mfdsisr());
     printk("hid4 0x%016lx\n", regs->hid4);
@@ -71,5 +74,7 @@ void program_exception(struct cpu_user_r
 
     if (!recover)
         panic("%s: 0x%lx\n", __func__, cookie);
+
+    console_end_sync();
 #endif /* CRASH_DEBUG */
 }

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Reply via email to