dragon-nx-32: reboot method
authorAlan Cox <alan@linux.intel.com>
Sun, 7 Jun 2015 09:22:34 +0000 (10:22 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 7 Jun 2015 09:22:34 +0000 (10:22 +0100)
Doesn't however seem to get us back into basic. More research needed

Kernel/platform-dragon-nx32/dragon.s

index 94d343b..f3f1fba 100644 (file)
@@ -19,6 +19,7 @@
 
                ; exported debugging tools
                .globl _trap_monitor
+               .globl _trap_reboot
                .globl outchar
                .globl _di
                .globl _ei
@@ -77,11 +78,14 @@ init_hardware:
             .area .common
 
 _trap_reboot:
+           orcc #0x10
+           clr 0xFFBE
+           jmp [0xFFFE]
+
 _trap_monitor:
-           cwai #0
+           orcc #0x10
            bra _trap_monitor
 
-
 _di:
            tfr cc,b            ; return the old irq state
            orcc #0x10