summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-03-14 17:54:16 +0800
committerTat-Chee Wan (USM)2011-03-14 17:54:16 +0800
commitd8032b84775430ff132f136371c95a045b401595 (patch)
tree834ed64593c08e78886102636321227c6db400f0
parent257fba8e02efa921eea848fe554be553286629af (diff)
must preserve lr in routine
-rw-r--r--Debugger/debug_runlooptasks.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/Debugger/debug_runlooptasks.S b/Debugger/debug_runlooptasks.S
index 24f8bfe..fd17412 100644
--- a/Debugger/debug_runlooptasks.S
+++ b/Debugger/debug_runlooptasks.S
@@ -79,8 +79,9 @@ dbg__runloopTasks:
.extern cCommCtrl
dbg__runloopTasks:
+ push {lr}
/* FIXME: Add necessary cXXXCtrl calls here */
bl cCommCtrl
/* OSWatchdogWrite is a NULL function in the NXT Firmware?! */
- bx lr
+ pop {pc}
#endif