diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-08-20 09:59:26 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-20 19:32:15 -0400 |
commit | 673b74be85bff420cccdc529d8247dbf486e175d (patch) | |
tree | b2ee7555a2311ff58d63cd43084df0e19fdab04e | |
parent | 7c328e476bc56c86e77ffff5c947f4b8ec47e36b (diff) |
sh: jump to p1 during boot on kfr2r09
Add a P1 jump to the the kfr2r09 romimage code. With this
patch applied the initial zImage assembly code will run
with instruction cache enabled.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/include/mach-kfr2r09/mach/romimage.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sh/include/mach-kfr2r09/mach/romimage.h b/arch/sh/include/mach-kfr2r09/mach/romimage.h index f5aa8e16770c..39ee79443569 100644 --- a/arch/sh/include/mach-kfr2r09/mach/romimage.h +++ b/arch/sh/include/mach-kfr2r09/mach/romimage.h | |||
@@ -73,3 +73,16 @@ | |||
73 | .endm | 73 | .endm |
74 | 74 | ||
75 | #include "partner-jet-setup.txt" | 75 | #include "partner-jet-setup.txt" |
76 | |||
77 | /* execute icbi after enabling cache */ | ||
78 | mov.l 1f, r0 | ||
79 | icbi @r0 | ||
80 | |||
81 | /* jump to cached area */ | ||
82 | mova 2f, r0 | ||
83 | jmp @r0 | ||
84 | nop | ||
85 | |||
86 | .align 2 | ||
87 | 1: .long 0xa8000000 | ||
88 | 2: | ||