From 99a4c90dee42104638933096728bebc45e28bf1a Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sat, 4 Feb 2012 12:19:57 +0100 Subject: do not reserve space for stacks if armdebug is disabled --- AT91SAM7S256/SAM7S256/Include/Cstartup.S | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'AT91SAM7S256/SAM7S256/Include/Cstartup.S') diff --git a/AT91SAM7S256/SAM7S256/Include/Cstartup.S b/AT91SAM7S256/SAM7S256/Include/Cstartup.S index 8a6a540..0293251 100644 --- a/AT91SAM7S256/SAM7S256/Include/Cstartup.S +++ b/AT91SAM7S256/SAM7S256/Include/Cstartup.S @@ -460,5 +460,18 @@ AT91F_Spurious_handler: .size AT91F_Spurious_handler, . - AT91F_Spurious_handler .endfunc +/*------------------------------------------------------------------------------ +//*- Various debugger stacks. +//*-------------------------------*/ + +#ifdef ARMDEBUG +.section .stack.abort, "aw", %nobits + .space 0x80; /* 128 byte abort mode stack. */ +.section .stack.debugger, "aw", %nobits + .space 0x48; /* 16 user mode registers + SPSR + UNDEF Next Instruction Address */ +.section .breakpoints, "aw", %nobits + .space 0x40; /* Single Stepping Breakpoint + 7 Breakpoints */ +#endif + .end -- cgit v1.2.3