aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Debugger/debug_stack.ld
diff options
context:
space:
mode:
authorTC Wan2010-12-02 17:49:30 +0800
committerTC Wan2010-12-02 17:49:30 +0800
commit6434b7466f3ba860396b9b14bb47320c19d04473 (patch)
treefb076c83d1c3f2535b89afee406da8432421b735 /AT91SAM7S256/armdebug/Debugger/debug_stack.ld
parenta71fd1b78f6e2ead46f374ca19f0f8eaf7de99d2 (diff)
parent97cc8322cef8027db22a24b7e011e5386171d97f (diff)
merge armdebug as a subtree
Diffstat (limited to 'AT91SAM7S256/armdebug/Debugger/debug_stack.ld')
-rw-r--r--AT91SAM7S256/armdebug/Debugger/debug_stack.ld15
1 files changed, 15 insertions, 0 deletions
diff --git a/AT91SAM7S256/armdebug/Debugger/debug_stack.ld b/AT91SAM7S256/armdebug/Debugger/debug_stack.ld
new file mode 100644
index 0000000..df27512
--- /dev/null
+++ b/AT91SAM7S256/armdebug/Debugger/debug_stack.ld
@@ -0,0 +1,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;