]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.xen/xen-i386-panic-on-oops
Updated xen patches taken from suse.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.xen / xen-i386-panic-on-oops
CommitLineData
cc90b958
BS
1From: jbeulich@novell.com
2Subject: Parse oops=panic (match x86-64)
3Patch-mainline: obsolete
4
5Index: head-2008-11-25/arch/x86/kernel/traps_32-xen.c
6===================================================================
7--- head-2008-11-25.orig/arch/x86/kernel/traps_32-xen.c 2008-11-25 13:17:46.000000000 +0100
8+++ head-2008-11-25/arch/x86/kernel/traps_32-xen.c 2008-11-25 13:18:12.000000000 +0100
9@@ -1277,6 +1277,16 @@ void __cpuinit smp_trap_init(trap_info_t
10 }
11 }
12
13+static int __init oops_setup(char *s)
14+{
15+ if (!s)
16+ return -EINVAL;
17+ if (!strcmp(s, "panic"))
18+ panic_on_oops = 1;
19+ return 0;
20+}
21+early_param("oops", oops_setup);
22+
23 static int __init kstack_setup(char *s)
24 {
25 kstack_depth_to_print = simple_strtoul(s, NULL, 0);