Add comment regarding returning to U-Boot
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Thu, 24 Mar 2011 19:55:29 +0000 (15:55 -0400)
committerMichael Spang <mspang@csclub.uwaterloo.ca>
Thu, 24 Mar 2011 19:55:29 +0000 (15:55 -0400)
ts7800.S

index 697fee2..7218df9 100644 (file)
--- a/ts7800.S
+++ b/ts7800.S
@@ -3,6 +3,11 @@ ts7800_start:
   str lr, [sp, #-4]!
   bl main
   ldr lr, [sp], #4
+
+  @ To return to U-Boot you should first return things to the state
+  @ you found them: svc mode, interrupts disabled, etc. If you don't
+  @ want to bother, reboot instead. U-Boot lives at 0x07FCA000 so
+  @ don't overwrite anything above the stack.
   bx lr
 
 ts7800_reboot: