]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
dumpstack: i386: make kstack= an early boot-param and add oops=panic
authorAlexander van Heukelum <heukelum@fastmail.fm>
Sat, 4 Oct 2008 21:12:45 +0000 (23:12 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Oct 2008 08:33:44 +0000 (10:33 +0200)
- make kstack= and early_param
 - add oops=panic, setting panic_on_oops

Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/dumpstack_32.c

index 09bc3330d55751156ad31ff67035bf5d74980ce4..9a8920abe4ba7bc1a9eb1c127a9a9b54d0519df9 100644 (file)
@@ -418,13 +418,24 @@ die_nmi(char *str, struct pt_regs *regs, int do_panic)
        do_exit(SIGSEGV);
 }
 
+static int __init oops_setup(char *s)
+{
+       if (!s)
+               return -EINVAL;
+       if (!strcmp(s, "panic"))
+               panic_on_oops = 1;
+       return 0;
+}
+early_param("oops", oops_setup);
+
 static int __init kstack_setup(char *s)
 {
+       if (!s)
+               return -EINVAL;
        kstack_depth_to_print = simple_strtoul(s, NULL, 0);
-
-       return 1;
+       return 0;
 }
-__setup("kstack=", kstack_setup);
+early_param("kstack", kstack_setup);
 
 static int __init code_bytes_setup(char *s)
 {