From: awilliam@xenbuild2.aw Date: Fri, 12 Jan 2007 19:14:05 +0000 (-0700) Subject: [IA64] Make crash command happy X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15415 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5d5be531d0b35b650884063ad4be969d8e18849a;p=xen.git [IA64] Make crash command happy As Dave requested, call unw_init_running() and save ksp before SHUTDOWN_crash. Signed-off-by: Dave Anderson Signed-off-by: Isaku Yamahata --- diff --git a/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c b/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c index 4158332846..ecf770645d 100644 --- a/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c +++ b/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c @@ -77,10 +77,18 @@ EXPORT_SYMBOL(__per_cpu_offset); #endif #ifdef CONFIG_XEN +static void +xen_panic_hypercall(struct unw_frame_info *info, void *arg) +{ + current->thread.ksp = (__u64)info->sw - 16; + HYPERVISOR_shutdown(SHUTDOWN_crash); + /* we're never actually going to get here... */ +} + static int xen_panic_event(struct notifier_block *this, unsigned long event, void *ptr) { - HYPERVISOR_shutdown(SHUTDOWN_crash); + unw_init_running(xen_panic_hypercall, NULL); /* we're never actually going to get here... */ return NOTIFY_DONE; }