summaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Debugger/debug_stack.ld
blob: df27512e19eea86ed01951823dc77d7979433861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* The following linker definitions should be placed in the stack section */

    /* debugger state */
    __debugger_stack_bottom__ = . ;
    . += 0x48;  /* 16 user mode registers + SPSR + BKPT Instr Addr */
    __debugger_stack__ = .;
    __debugger_stack_top__ = . ;
    
    /* breakpoints */
    __breakpoints_start__ = . ;
    . += 0x40;  /* Single Stepping Breakpoint + 7 Breakpoints */
    __breakpoints_end__ = . ;

/* Symbols */
    __breakpoints_num__ = (__breakpoints_end__ - __breakpoints_start__) / 8;