Skip to contentSkip to conversation

i386: add kstack=N option (from x86_64)

PATCH New Randy.Dunlap 1 participant 1 message Mar 16, 2005 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: add kstack=N option (from x86_64)

Add "kstack=N" boot option for IA-32 (from x86_64).

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
diff -Naurp ./arch/i386/kernel/traps.c~kstack_i386 ./arch/i386/kernel/traps.c
@@ -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
diff -Naurp ./Documentation/kernel-parameters.txt~kstack_i386 ./Documentation/kernel-parameters.txt
@@ -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.

---