aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Debugger/debug_comm.S
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-04-27 15:23:24 +0800
committerTat-Chee Wan (USM)2011-04-27 15:23:24 +0800
commitefa35bbf85ba1bfa37b34bc35d4fa5e8cf3208f6 (patch)
treed6f841d2ba30c5d4c77fe669152b10aaa5c95442 /AT91SAM7S256/armdebug/Debugger/debug_comm.S
parent96232341cd6b5f788ba1faf9b3347c286274a89c (diff)
parent0bf5f4efbea18e4402814f8cacd79967a4257e50 (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
Diffstat (limited to 'AT91SAM7S256/armdebug/Debugger/debug_comm.S')
-rw-r--r--AT91SAM7S256/armdebug/Debugger/debug_comm.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/AT91SAM7S256/armdebug/Debugger/debug_comm.S b/AT91SAM7S256/armdebug/Debugger/debug_comm.S
index 5783dbd..06e7424 100644
--- a/AT91SAM7S256/armdebug/Debugger/debug_comm.S
+++ b/AT91SAM7S256/armdebug/Debugger/debug_comm.S
@@ -602,12 +602,14 @@ _dbg__comm_readbuf_reset:
* On Exit:
* R0-R3: Destroyed
*/
-
dbg__copyNxtDebugMsg:
ldr r3, =debug_nxtMsgLength
str r1, [r3, #NXTCOMMCHANNEL_OFFSET]
str r2, [r3]
ldr r1, =debug_InCommBuf
+/* FIXME: We can probably save some cycles and buffer space by using the
+ * NXT comms buffer specified in R0 directly without copying to internal buffers
+ */
_dbg_memcpy r1, r0, r2, r3 /* r3: scratch register */
bx lr
#endif