sh: stack debugging support.

This adds a DEBUG_STACK_USAGE and DEBUG_STACKOVERFLOW for SH.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Paul Mundt
2006-09-27 18:20:16 +09:00
parent 7a440c950e
commit d153ea88dc
6 changed files with 52 additions and 13 deletions

View File

@ -11,6 +11,8 @@
* Head.S contains the SH exception handlers and startup code.
*/
#include <linux/linkage.h>
#include <asm/thread_info.h>
#include <asm/page.h>
#ifdef CONFIG_CPU_SH4A
#define SYNCO() synco
@ -95,7 +97,7 @@ ENTRY(_stext)
.balign 4
1: .long 0x400080F0 ! MD=1, RB=0, BL=0, FD=1, IMASK=0xF
2: .long init_thread_union+8192
2: .long init_thread_union+THREAD_SIZE
3: .long __bss_start
4: .long _end
5: .long start_kernel