diff options
Diffstat (limited to 'arch/x86/kernel/dumpstack_32.c')
-rw-r--r-- | arch/x86/kernel/dumpstack_32.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/arch/x86/kernel/dumpstack_32.c b/arch/x86/kernel/dumpstack_32.c index 09bc3330d557..9a8920abe4ba 100644 --- a/arch/x86/kernel/dumpstack_32.c +++ b/arch/x86/kernel/dumpstack_32.c | |||
@@ -418,13 +418,24 @@ die_nmi(char *str, struct pt_regs *regs, int do_panic) | |||
418 | do_exit(SIGSEGV); | 418 | do_exit(SIGSEGV); |
419 | } | 419 | } |
420 | 420 | ||
421 | static int __init oops_setup(char *s) | ||
422 | { | ||
423 | if (!s) | ||
424 | return -EINVAL; | ||
425 | if (!strcmp(s, "panic")) | ||
426 | panic_on_oops = 1; | ||
427 | return 0; | ||
428 | } | ||
429 | early_param("oops", oops_setup); | ||
430 | |||
421 | static int __init kstack_setup(char *s) | 431 | static int __init kstack_setup(char *s) |
422 | { | 432 | { |
433 | if (!s) | ||
434 | return -EINVAL; | ||
423 | kstack_depth_to_print = simple_strtoul(s, NULL, 0); | 435 | kstack_depth_to_print = simple_strtoul(s, NULL, 0); |
424 | 436 | return 0; | |
425 | return 1; | ||
426 | } | 437 | } |
427 | __setup("kstack=", kstack_setup); | 438 | early_param("kstack", kstack_setup); |
428 | 439 | ||
429 | static int __init code_bytes_setup(char *s) | 440 | static int __init code_bytes_setup(char *s) |
430 | { | 441 | { |