Magellan Linux

Annotation of /trunk/kernel26-xen/patches-2.6.25-r1/1037-2.6.25-xen-i386-panic-on-oops.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 609 - (hide annotations) (download)
Fri May 23 17:35:37 2008 UTC (16 years ago) by niro
File size: 736 byte(s)
-using opensuse xen patchset, updated kernel configs

1 niro 609 From: jbeulich@novell.com
2     Subject: Parse oops=panic (match x86-64)
3     Patch-mainline: obsolete
4    
5     Index: head-2008-02-26/arch/x86/kernel/traps_32-xen.c
6     ===================================================================
7     --- head-2008-02-26.orig/arch/x86/kernel/traps_32-xen.c 2008-03-03 14:41:51.000000000 +0100
8     +++ head-2008-02-26/arch/x86/kernel/traps_32-xen.c 2008-03-03 14:45:25.000000000 +0100
9     @@ -1245,6 +1245,16 @@ void smp_trap_init(trap_info_t *trap_ctx
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);