From 3bd42c4969f92d991605c89d4cb3112cc7c5e917 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Sat, 18 Jun 2011 16:13:35 +0800 Subject: preliminary kill command support When GDB Kill command received, reboot the brick. Conditionalize Step command support based on compiler flags. --- Debugger/debug_runlooptasks.S | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'Debugger/debug_runlooptasks.S') diff --git a/Debugger/debug_runlooptasks.S b/Debugger/debug_runlooptasks.S index a9e0fcd..a80c46a 100644 --- a/Debugger/debug_runlooptasks.S +++ b/Debugger/debug_runlooptasks.S @@ -75,7 +75,7 @@ .code 32 .align 4 .global dbg__runloopTasks - + .global dbg__reboot #ifdef __NXOS__ /**************************************************************************** @@ -103,6 +103,26 @@ dbg__runloopTasks: pop {pc} #endif +#ifdef __NXOS__ + .extern nx_core_reset +/**************************************************************************** + * + * NxOS Reboot Routine + * + ****************************************************************************/ + dbg__reboot: + b nx_core_reset /* Reboot Brick, won't return */ + +#else +/**************************************************************************** + * + * NXT Firmware Reboot Routine + * + ****************************************************************************/ +dbg__reboot: + bx lr +#endif + #ifdef __NXOS__ /**************************************************************************** -- cgit v1.2.3