i386: add kstack=N option (from x86_64)
PATCH 1/1 i386: add kstack=N option (from x86_64)
Add "kstack=N" boot option for IA-32 (from x86_64).
Signed-off-by Randy Dunlap <[email protected]>
diffstat:=
Documentation/kernel-parameters.txt | 3 +++ arch/i386/kernel/traps.c | 7 +++++++ 2 files changed, 10 insertions(+)
arch/i386/kernel/traps.c renamed from arch/i386/kernel/traps.c~kstack_i386 +7 -0
@@ -1038,3 +1038,10 @@ void __init trap_init(void)trap_init_hook (); } + +static int __init kstack_setup (char *s) +{ + kstack_depth_to_print =simple_strtoul (s,NULL ,0 ); +return 0 ; +} +__setup ("kstack=" , kstack_setup);
Documentation/kernel-parameters.txt renamed from Documentation/kernel-parameters.txt~kstack_i386 +3 -0
@@ -614,6 +617,9 @@ running once the system is up. keepinitrd [HW,ARM] + kstack=N [IA-32, X86-64] Print N words from the kernel stack + in oops dumps. + l2cr= [PPC] lapic [IA-32,APIC] Enable the local APIC even if BIOS disabled it.
---