From 238f1f715c01d052a9dc19db079c1f97bcd3b53c Mon Sep 17 00:00:00 2001 From: TC Wan Date: Tue, 30 Nov 2010 15:56:53 +0800 Subject: added linker definitions to support debugger The contents of this file should be merged with the NXT Firmware linker file. --- AT91SAM7S256/Debugger/debug_stack.ld | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 AT91SAM7S256/Debugger/debug_stack.ld (limited to 'AT91SAM7S256') 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; -- cgit v1.2.3