public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9b9fd7
)
dragon-nx-32: reboot method
author
Alan Cox
<alan@linux.intel.com>
Sun, 7 Jun 2015 09:22:34 +0000
(10:22 +0100)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/Kernel/platform-dragon-nx32/dragon.s
b/Kernel/platform-dragon-nx32/dragon.s
index
94d343b
..
f3f1fba
100644
(file)
--- a/
Kernel/platform-dragon-nx32/dragon.s
+++ b/
Kernel/platform-dragon-nx32/dragon.s
@@
-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 #0x1
0
bra _trap_monitor
-
_di:
tfr cc,b ; return the old irq state
orcc #0x10