summaryrefslogtreecommitdiff
path: root/AT91SAM7S256
diff options
context:
space:
mode:
authorTC Wan2010-11-30 15:56:53 +0800
committerTC Wan2010-12-01 13:40:09 +0800
commit238f1f715c01d052a9dc19db079c1f97bcd3b53c (patch)
tree6b7146868f1457a731129825a1654f316377f6e4 /AT91SAM7S256
parent6512a0b005edffc1e37b252e3a8262964ab2110a (diff)
added linker definitions to support debugger
The contents of this file should be merged with the NXT Firmware linker file.
Diffstat (limited to 'AT91SAM7S256')
-rw-r--r--AT91SAM7S256/Debugger/debug_stack.ld15
1 files changed, 15 insertions, 0 deletions
diff --git a/AT91SAM7S256/Debugger/debug_stack.ld b/AT91SAM7S256/Debugger/debug_stack.ld
new file mode 100644
index 0000000..df27512
--- /dev/null
+++ b/AT91SAM7S256/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;