ia64/xen-unstable

changeset 15368:56548d9a7ba7

kexec: Flush console on kexec_crash().
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Fri Jun 15 16:30:10 2007 +0100 (2007-06-15)
parents 8ad38aaaeb89
children 1feb91894e11
files xen/common/kexec.c
line diff
     1.1 --- a/xen/common/kexec.c	Fri Jun 15 15:30:49 2007 +0100
     1.2 +++ b/xen/common/kexec.c	Fri Jun 15 16:30:10 2007 +0100
     1.3 @@ -19,6 +19,7 @@
     1.4  #include <asm/atomic.h>
     1.5  #include <xen/spinlock.h>
     1.6  #include <xen/version.h>
     1.7 +#include <xen/console.h>
     1.8  #include <public/elfnote.h>
     1.9  
    1.10  #ifndef COMPAT
    1.11 @@ -110,6 +111,8 @@ void kexec_crash(void)
    1.12      if ( !test_bit(KEXEC_IMAGE_CRASH_BASE + pos, &kexec_flags) )
    1.13          return;
    1.14  
    1.15 +    console_start_sync();
    1.16 +
    1.17      one_cpu_only();
    1.18      kexec_crash_save_cpu();
    1.19      machine_crash_shutdown();