# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1166756598 -32400 # Node ID 262eb4ba1212112345018d8b94c35cb2e4fc9764 # Parent 114c8cc94466089e95bc5f78347a388c55485690 As Dave requested, call unw_init_running() before SHUTDOWN_crash. This makes crash command happy. PATCHNAME: unw_init_running_before_shutdown_crash Signed-off-by: Isaku Yamahata diff -r 114c8cc94466 -r 262eb4ba1212 linux-2.6-xen-sparse/arch/ia64/kernel/setup.c --- a/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c Thu Dec 21 17:47:31 2006 +0900 +++ b/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c Fri Dec 22 12:03:18 2006 +0900 @@ -78,10 +78,17 @@ EXPORT_SYMBOL(__per_cpu_offset); #endif #ifdef CONFIG_XEN +static void +xen_panic_hypercall(struct unw_frame_info *info, void *arg) +{ + 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; }