aboutsummaryrefslogtreecommitdiff
path: root/Debugger/debug_stack.ld
blob: 8fc4cb7e1cebd9006508f2db3c58823d4d435947 (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 previous mode registers + SPSR + UNDEF Next Instruction Address */
    __debugger_stack__ = .;
    __debugger_stack_top__ = . ;
    
    /* breakpoints */
    __breakpoints_start__ = . ;
    . += 0x40;  /* Single Stepping Breakpoint + 7 Breakpoints */
    __breakpoints_end__ = . ;

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