aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Debugger/debug_stub.h
diff options
context:
space:
mode:
Diffstat (limited to 'AT91SAM7S256/armdebug/Debugger/debug_stub.h')
-rw-r--r--AT91SAM7S256/armdebug/Debugger/debug_stub.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/AT91SAM7S256/armdebug/Debugger/debug_stub.h b/AT91SAM7S256/armdebug/Debugger/debug_stub.h
index 6807ac1..2430e77 100644
--- a/AT91SAM7S256/armdebug/Debugger/debug_stub.h
+++ b/AT91SAM7S256/armdebug/Debugger/debug_stub.h
@@ -145,6 +145,20 @@ static inline void dbg_breakpoint_thumb(void) { asm volatile (".hword 0xBE7F" /*
.hword (BKPT16_INSTR | BKPT16_MANUAL_BKPT)
.endm
+/** Macro to declare Interworking ARM Routine
+ *
+ * dbg_interwork <arm_routine_name>
+ *
+ * Note: declared as a private macro since ARMDEBUG is also used by NIF
+ */
+ .macro dbg_interwork arm_routine
+ .align 4
+ .arm
+ .type \arm_routine, %function @ Needed by new binutils (>2.21)
+ .global \arm_routine
+\arm_routine:
+ .endm
+
#endif
/*@}*/