# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1167010270 -32400 # Node ID 3d567143e842769c7910b2fbfafde9f07606a8e8 # Parent 91be8436952d82eacd7e0db3aece8858c3a53150 As Dave requested, call unw_init_running() and save ksp before SHUTDOWN_crash. This makes crash command happy. PATCHNAME: unw_init_running_before_shutdown_crash Signed-off-by: Dave Anderson Signed-off-by: Isaku Yamahata diff -r 91be8436952d -r 3d567143e842 linux-2.6-xen-sparse/arch/ia64/kernel/setup.c --- a/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c Wed Jan 10 10:37:41 2007 -0700 +++ b/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c Mon Dec 25 10:31:10 2006 +0900 @@ -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; }