ChangeSet 1.2231.1.49, 2005/03/28 19:30:20-08:00, [EMAIL PROTECTED]
[PATCH] 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]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
Documentation/kernel-parameters.txt | 3 +++
arch/i386/kernel/traps.c | 7 +++++++
2 files changed, 10 insertions(+)
diff -Nru a/Documentation/kernel-parameters.txt
b/Documentation/kernel-parameters.txt
--- a/Documentation/kernel-parameters.txt 2005-03-28 21:17:08 -08:00
+++ b/Documentation/kernel-parameters.txt 2005-03-28 21:17:08 -08:00
@@ -635,6 +635,9 @@
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.
diff -Nru a/arch/i386/kernel/traps.c b/arch/i386/kernel/traps.c
--- a/arch/i386/kernel/traps.c 2005-03-28 21:17:08 -08:00
+++ b/arch/i386/kernel/traps.c 2005-03-28 21:17:08 -08:00
@@ -1030,3 +1030,10 @@
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);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html