Imported xen patches.
[people/pmueller/ipfire-2.x.git] / src / patches / 60067_xen-i386-panic-on-oops.patch1
1 From: jbeulich@novell.com
2 Subject: Parse oops=panic (match x86-64)
3 Patch-mainline: obsolete
4
5 Index: 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);