From ad497e188b490981211ecf61edf12a92d32a233b Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Fri, 17 Jun 2011 09:12:26 +0800 Subject: fix return status check for nx_usb_data_written The C return value for True is not identical to that used by ARMDEBUG. Check for False instead. --- Debugger/debug_comm.S | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Debugger/debug_comm.S b/Debugger/debug_comm.S index a3600a2..1789cb1 100644 --- a/Debugger/debug_comm.S +++ b/Debugger/debug_comm.S @@ -420,9 +420,11 @@ _dbg__sendCommMsg: bl nx_usb_write 1: bl nx_usb_data_written /* R0 = True if data has been sent */ - cmp r0, #TRUE + teq r0, #0 /* FALSE == #0; + We can't check for True condition since values + used by C-Compiler & ARMDEBUG are different */ /* FIXME: implement timeout */ - bne 1b /* Busy Wait Loop */ + beq 1b /* Busy Wait Loop */ #else ldr r0, =debug_nxtCommChannel ldr r0, [r0] /* Get Channel Enum */ -- cgit v1.2.3