diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 05:20:16 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 05:20:16 -0400 |
commit | d153ea88dccf003173315b5d21acabebb897fb4a (patch) | |
tree | 5cdc96ef0ec58026d82c03f76250ac1833f566d4 /arch/sh/kernel/head.S | |
parent | 7a440c950efb5cdc8a05cc6c3ec8fc864b60ef77 (diff) |
sh: stack debugging support.
This adds a DEBUG_STACK_USAGE and DEBUG_STACKOVERFLOW for SH.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/head.S')
-rw-r--r-- | arch/sh/kernel/head.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sh/kernel/head.S b/arch/sh/kernel/head.S index c5e363872b91..3e7d00b7985a 100644 --- a/arch/sh/kernel/head.S +++ b/arch/sh/kernel/head.S | |||
@@ -11,6 +11,8 @@ | |||
11 | * Head.S contains the SH exception handlers and startup code. | 11 | * Head.S contains the SH exception handlers and startup code. |
12 | */ | 12 | */ |
13 | #include <linux/linkage.h> | 13 | #include <linux/linkage.h> |
14 | #include <asm/thread_info.h> | ||
15 | #include <asm/page.h> | ||
14 | 16 | ||
15 | #ifdef CONFIG_CPU_SH4A | 17 | #ifdef CONFIG_CPU_SH4A |
16 | #define SYNCO() synco | 18 | #define SYNCO() synco |
@@ -95,7 +97,7 @@ ENTRY(_stext) | |||
95 | 97 | ||
96 | .balign 4 | 98 | .balign 4 |
97 | 1: .long 0x400080F0 ! MD=1, RB=0, BL=0, FD=1, IMASK=0xF | 99 | 1: .long 0x400080F0 ! MD=1, RB=0, BL=0, FD=1, IMASK=0xF |
98 | 2: .long init_thread_union+8192 | 100 | 2: .long init_thread_union+THREAD_SIZE |
99 | 3: .long __bss_start | 101 | 3: .long __bss_start |
100 | 4: .long _end | 102 | 4: .long _end |
101 | 5: .long start_kernel | 103 | 5: .long start_kernel |