summaryrefslogtreecommitdiff
path: root/Debugger/debug_runlooptasks.S
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-06-18 16:13:35 +0800
committerTat-Chee Wan (USM)2011-06-18 16:13:35 +0800
commit3bd42c4969f92d991605c89d4cb3112cc7c5e917 (patch)
tree12caebdc774b30c2fffd2c887f6aac2860b016a8 /Debugger/debug_runlooptasks.S
parentad497e188b490981211ecf61edf12a92d32a233b (diff)
preliminary kill command support
When GDB Kill command received, reboot the brick. Conditionalize Step command support based on compiler flags.
Diffstat (limited to 'Debugger/debug_runlooptasks.S')
-rw-r--r--Debugger/debug_runlooptasks.S22
1 files changed, 21 insertions, 1 deletions
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__
/****************************************************************************