direct-io.hg

changeset 13471:5d328ef9da71

[IA64] Make crash command happy

As Dave requested, call unw_init_running() and save ksp before SHUTDOWN_crash.

Signed-off-by: Dave Anderson <anderson@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild2.aw
date Fri Jan 12 12:14:05 2007 -0700 (2007-01-12)
parents 8835443fa3b3
children b440f5dbca1f
files linux-2.6-xen-sparse/arch/ia64/kernel/setup.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c	Fri Jan 12 12:03:38 2007 -0700
     1.2 +++ b/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c	Fri Jan 12 12:14:05 2007 -0700
     1.3 @@ -77,10 +77,18 @@ EXPORT_SYMBOL(__per_cpu_offset);
     1.4  #endif
     1.5  
     1.6  #ifdef CONFIG_XEN
     1.7 +static void
     1.8 +xen_panic_hypercall(struct unw_frame_info *info, void *arg)
     1.9 +{
    1.10 +	current->thread.ksp = (__u64)info->sw - 16;
    1.11 +	HYPERVISOR_shutdown(SHUTDOWN_crash);
    1.12 +	/* we're never actually going to get here... */
    1.13 +}
    1.14 +
    1.15  static int
    1.16  xen_panic_event(struct notifier_block *this, unsigned long event, void *ptr)
    1.17  {
    1.18 -	HYPERVISOR_shutdown(SHUTDOWN_crash);
    1.19 +	unw_init_running(xen_panic_hypercall, NULL);
    1.20  	/* we're never actually going to get here... */
    1.21  	return NOTIFY_DONE;
    1.22  }