[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] Make crash command happy
# HG changeset patch # User awilliam@xxxxxxxxxxxx # Date 1168629245 25200 # Node ID 5d328ef9da712ef1640e2086c17cc7c6f255f47f # Parent 8835443fa3b37b5dde5e71a0e7ca49b9237b9cda [IA64] Make crash command happy As Dave requested, call unw_init_running() and save ksp before SHUTDOWN_crash. Signed-off-by: Dave Anderson <anderson@xxxxxxxxxx> Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- linux-2.6-xen-sparse/arch/ia64/kernel/setup.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletion(-) diff -r 8835443fa3b3 -r 5d328ef9da71 linux-2.6-xen-sparse/arch/ia64/kernel/setup.c --- a/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c Fri Jan 12 12:03:38 2007 -0700 +++ b/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c Fri Jan 12 12:14:05 2007 -0700 @@ -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; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |