aboutsummaryrefslogtreecommitdiff
path: root/Debugger/debug_comm.S
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-01-18 15:51:30 +0800
committerTat-Chee Wan (USM)2011-01-18 15:51:30 +0800
commitf9ebd55c1fb05abdc57ae119fe1fd876b5005ac2 (patch)
tree16231f653460782e11582658530a79595204c6ed /Debugger/debug_comm.S
parentc581a52793e2c7abb21a6d2cf3c35d717f60e0d2 (diff)
implemented get/set registers and insert/remove breakpoints commands
Diffstat (limited to 'Debugger/debug_comm.S')
-rw-r--r--Debugger/debug_comm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/Debugger/debug_comm.S b/Debugger/debug_comm.S
index 09c983f..e801479 100644
--- a/Debugger/debug_comm.S
+++ b/Debugger/debug_comm.S
@@ -470,7 +470,7 @@ _copy_msg_from_usbbuf:
ldr r3, =debug_InUSBBuf
add r3, r3, #USB_GDBMSG_START
- _dbg_memcpy r2, r3, r4 /* r2 updated to point to next empty char slot in Rx buffer */
+ _dbg_memcpy r2, r3, r4, r0 /* r2 updated to point to next empty char slot in Rx buffer */
sub r4, r2, r5 /* r4: cummulative length of message */
/* Update debug_msgRxBuf_AppendPtr */
@@ -635,7 +635,7 @@ _copy_msg_to_usbbuf:
strb r0, [r3], #1 /* Message Length */
mov r2, r5 /* Copy to R2 for updating */
- _dbg_memcpy r3, r2, r4 /* This copies over the message fragment, r3, r2 updated */
+ _dbg_memcpy r3, r2, r4, r0 /* This copies over the message fragment, r3, r2 updated */
mov r5, r2 /* Updated Tx Append Pointer, keep in R5 for now */
/* Check USB bus status, transmit message if possible */