aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/kexec.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-06-15 16:30:10 +0100
committerKeir Fraser <keir@xensource.com>2007-06-15 16:30:10 +0100
commitf31620f8a0a73901552457c6b631dab0127970e3 (patch)
tree83d255d0574aa80f46e6ca91841619173b887d85 /xen/common/kexec.c
parent34bef0e6d5f4db553c68bd482e5e0f9487dea300 (diff)
downloadxen-f31620f8a0a73901552457c6b631dab0127970e3.tar.gz
xen-f31620f8a0a73901552457c6b631dab0127970e3.tar.bz2
xen-f31620f8a0a73901552457c6b631dab0127970e3.zip
kexec: Flush console on kexec_crash().
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/kexec.c')
-rw-r--r--xen/common/kexec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/common/kexec.c b/xen/common/kexec.c
index c0fe6d2396..577492fec0 100644
--- a/xen/common/kexec.c
+++ b/xen/common/kexec.c
@@ -19,6 +19,7 @@
#include <asm/atomic.h>
#include <xen/spinlock.h>
#include <xen/version.h>
+#include <xen/console.h>
#include <public/elfnote.h>
#ifndef COMPAT
@@ -110,6 +111,8 @@ void kexec_crash(void)
if ( !test_bit(KEXEC_IMAGE_CRASH_BASE + pos, &kexec_flags) )
return;
+ console_start_sync();
+
one_cpu_only();
kexec_crash_save_cpu();
machine_crash_shutdown();