summaryrefslogtreecommitdiff
path: root/kexec/arch/sh/netbsd_booter.S
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2007-02-01 17:09:16 +0900
committerSimon Horman <horms@verge.net.au>2007-02-01 17:16:53 +0900
commit35917b5e76e8aef49920cc9693c94863f4ae507b (patch)
tree79aac9b8ea813e3809e44b940d10b4f4d6ef257b /kexec/arch/sh/netbsd_booter.S
parent17aef86b03edc9867f990434bc30be0ac498376d (diff)
kexec-tools: Add sh support
Patch found on http://eggplant.ddo.jp/www/download/debian26/source/kexec-tools/kexec-tools_1.101-2sh.diff.gz According to Paul Mundt <lethal@linux-sh.org> it was originally by kogiidena <kogiidena@eggplant.ddo.jp> Signed-off-by: Simon Horman <horms@verge.net.au> Acked-by: Magnus Damm <magnus.damm@gmail.com>
Diffstat (limited to 'kexec/arch/sh/netbsd_booter.S')
-rw-r--r--kexec/arch/sh/netbsd_booter.S47
1 files changed, 47 insertions, 0 deletions
diff --git a/kexec/arch/sh/netbsd_booter.S b/kexec/arch/sh/netbsd_booter.S
new file mode 100644
index 0000000..e660b3d
--- /dev/null
+++ b/kexec/arch/sh/netbsd_booter.S
@@ -0,0 +1,47 @@
+ .globl netbsd_booter
+netbsd_booter:
+ mov.l ccr,r0
+ mov #0,r1
+ mov.l r1,@r0
+ nop
+ nop
+ nop
+ nop
+ nop
+ nop
+ nop
+ nop
+ nop
+ nop
+ mova netbsd_start,r0
+ mov.l @r0,r1
+ add #4,r0
+ mov.l @r0,r4 ! howto
+ add #4,r0
+ mov r0,r5 ! bootinfo
+ jmp @r1
+ nop
+ nop
+ nop
+ .align 4
+ccr: .long 0xff00001c
+
+ .align 8
+netbsd_start:
+ .long 0x8c001000
+ .long 0x200 ! howto
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+ .long 0 ! bootinfo
+