aboutsummaryrefslogtreecommitdiff
path: root/Debugger/debug_comm.S
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-03-18 18:41:36 +0800
committerTat-Chee Wan (USM)2011-03-18 18:41:36 +0800
commit6d55f0fda6820e343eac219dd3a338fc44a26618 (patch)
tree25c61d6d7ca65b3c1a7dc5a6677033eb3cbd81a8 /Debugger/debug_comm.S
parent6cfc6ae6394d24a03be2ccb6654f0722ca3cea7c (diff)
second attempt at determining whether we are in debug mode
Checking CPSR does not seem to be reliable in cCommHandleDebug which runs in Thumb mode. Modified to use explicit mode variable for keeping track of our operating mode (normal vs. debug).
Diffstat (limited to 'Debugger/debug_comm.S')
-rw-r--r--Debugger/debug_comm.S4
1 files changed, 1 insertions, 3 deletions
diff --git a/Debugger/debug_comm.S b/Debugger/debug_comm.S
index efe44a9..6a7aa11 100644
--- a/Debugger/debug_comm.S
+++ b/Debugger/debug_comm.S
@@ -408,8 +408,7 @@ _dbg__usb_readbuf_reset:
* R1: USB Command Bit
* R2: USB Raw Message Length
* On Exit:
- * R0: CPSR
- * R1-R3: Destroyed
+ * R0-R3: Destroyed
*/
dbg__copyNxtDebugMsg:
@@ -417,7 +416,6 @@ dbg__copyNxtDebugMsg:
str r2, [r1]
ldr r1, =debug_InUSBBuf
_dbg_memcpy r1, r0, r2, r3 /* r3: scratch register */
- mrs r0, cpsr
bx lr
#endif