From c351d60d912c121b3c4e22b8b53e5d946bb5f748 Mon Sep 17 00:00:00 2001 From: TC Wan Date: Thu, 23 Dec 2010 18:30:11 +0800 Subject: checkin wip for communications support Start implementing USB communications support --- Debugger/debug_stub.S | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Debugger/debug_stub.S') diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S index 8448a46..4ebe6f3 100644 --- a/Debugger/debug_stub.S +++ b/Debugger/debug_stub.S @@ -341,13 +341,14 @@ debug_armComplexCCTable: dbg__bkpt_init: stmfd sp!, {lr} bl _dbg__clear_breakpoints - mov r0, #0 + mov r2, #0 ldr r1, =debug_curr_breakpoint - str r0, [r1] - ldr r1, =debug_InMsgBuf - strb r0, [r1] + str r2, [r1] + ldr r0, =debug_InMsgBuf + strb r2, [r0] ldr r1, =debug_OutMsgBuf - strb r0, [r1] + strb r2, [r1] + bl dbg__comm_init /* Pass R0: Rx Buffer, R1: Tx Buffer to comm submodule */ /* FIXME: Initialize other stuff here */ _dbg_setstate DBG_INIT -- cgit v1.2.3