summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-02-21 10:08:55 +0800
committerTat-Chee Wan (USM)2011-02-21 10:08:55 +0800
commitc13f4e61d5ea38896337bde578da8b4939503be7 (patch)
treee874edccfa23e828bd66839fecb0889df5feaea9
parentc40da387cd0e0042d310bfe2f1249b364f4af072 (diff)
we can't use teq for true value since it is 32-bits
-rw-r--r--Debugger/debug_comm.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/Debugger/debug_comm.S b/Debugger/debug_comm.S
index 7fbddb6..bfa3d25 100644
--- a/Debugger/debug_comm.S
+++ b/Debugger/debug_comm.S
@@ -619,7 +619,7 @@ _dbg__sendUSBMsg:
#ifdef __NXOS__
/* Check USB bus status, transmit message if possible */
bl nx_usb_is_connected /* R0 = True if USB is ready */
- teq r0, #TRUE
+ cmp r0, #TRUE
bne _exit_dbg__sendUSBMsg
/* Actual transmission (blocking) */
@@ -628,7 +628,7 @@ _dbg__sendUSBMsg:
bl nx_usb_write
1: bl nx_usb_data_written /* R0 = True if data has been sent */
- teq r0, #TRUE
+ cmp r0, #TRUE
/* FIXME: implement timeout */
bne 1b /* Busy Wait Loop */
#else
@@ -689,7 +689,7 @@ _copy_msg_to_usbbuf:
add r0, r4, #USB_GDBMSG_START /* Total USB Buffer Size for Tx (USB_GDBMSG_START offset = header size) */
bl _dbg__sendUSBMsg /* Common interface routine to USB drivers */
- teq r0, #TRUE
+ cmp r0, #TRUE
ldrne r5, [r6, #TXAPPENDPTR_OFFSET] /* Tx failed, Retrieve Original Tx Append Pointer */
streq r5, [r6, #TXAPPENDPTR_OFFSET] /* Tx succeeded, Update Tx Append Pointer to new position */