summaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Debugger/debug_stub.h
diff options
context:
space:
mode:
authorTC Wan2010-11-30 15:36:42 +0800
committerTC Wan2010-12-01 13:40:09 +0800
commit6512a0b005edffc1e37b252e3a8262964ab2110a (patch)
tree0d6d971ae91951ded28e129c77150d767d97d75d /AT91SAM7S256/Debugger/debug_stub.h
parente77f061f50a25ac3dcbfb245f4c61fde2e7505ed (diff)
added interrupt handler and prelim support for thumb instructions
Added Interrupt Handler routine for UNDEF exception. This should be integrated with the NXT Interrupt handlers. Updated debugger to have preliminary Thumb mode support.
Diffstat (limited to 'AT91SAM7S256/Debugger/debug_stub.h')
-rw-r--r--AT91SAM7S256/Debugger/debug_stub.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/AT91SAM7S256/Debugger/debug_stub.h b/AT91SAM7S256/Debugger/debug_stub.h
index 9a120e5..7849d56 100644
--- a/AT91SAM7S256/Debugger/debug_stub.h
+++ b/AT91SAM7S256/Debugger/debug_stub.h
@@ -39,6 +39,7 @@
#define MSGBUF_ERRCHAR 'E'
#define MSGBUF_SIGCHAR 'S'
#define MSGBUF_CPSRREG '!'
+#define MSGBUF_SETCHAR '='
#define MSGBUF_CMDINDEX_OUTOFRANGE_VAL -1
/*@}*/
@@ -75,6 +76,17 @@
#define HLFWRD1 0xFFFF0000 /* Halfword 0 word(31:16) */
/*@}*/
+/** @name CPSR Bit Definitions.
+ *
+ * Various Bit definitions for accessing the CPSR register.
+ */
+/*@{*/
+#define CPSR_THUMB 0x00000020
+#define CPSR_FIQ 0x00000040
+#define CPSR_IRQ 0x00000080
+
+/*@}*/
+
/** @name BKPT suppport constants
*
* ARM and Thumb Breakpoint Instructions.
@@ -111,7 +123,8 @@ ENUM_END(dbg_state_t)
* The enums must be consecutive, starting from 1
*/
ENUM_BEGIN
-ENUM_VALASSIGN(MSG_ERRCHKSUM, 1) /**< Checksum Error. */
+ENUM_VALASSIGN(MSG_ERRIMPL, 0) /**< Stub (not implemented) Error. */
+ENUM_VAL(MSG_ERRCHKSUM) /**< Checksum Error. */
ENUM_VAL(MSG_ERRFORMAT) /**< Message Format Error. */
ENUM_VAL(MSG_UNKNOWNCMD) /**< Unrecognized Command Error. */
ENUM_VAL(MSG_UNKNOWNPARAM) /**< Unrecognized Parameter Error. */