11 #include <linux/kernel.h>
13 #include <linux/module.h>
14 #include <linux/sched.h>
17 #include <asm/exceptions.h>
18 #include <asm/unwind.h>
22 __enable_hw_exceptions();
25 static unsigned long kstack_depth_to_print;
27 static int __init kstack_setup(
char *
s)
31 __setup(
"kstack=", kstack_setup);
35 unsigned long words_to_show;
49 if (kstack_depth_to_print && (words_to_show > kstack_depth_to_print))
50 words_to_show = kstack_depth_to_print;
59 unsigned long line1_words = (0x10 - (fp & 0xF)) >> 2;
60 if (line1_words < words_to_show) {
62 4, (
void *)fp, line1_words << 2, 0);
63 fp += line1_words << 2;
64 words_to_show -= line1_words;
68 words_to_show << 2, 0);