Skip to content

Commit

Permalink
sh: jump to p1 during boot on kfr2r09
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Aug 20, 2009
1 parent 7c328e4 commit 673b74b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions arch/sh/include/mach-kfr2r09/mach/romimage.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,16 @@
.endm

#include "partner-jet-setup.txt"

/* execute icbi after enabling cache */
mov.l 1f, r0
icbi @r0

/* jump to cached area */
mova 2f, r0
jmp @r0
nop

.align 2
1: .long 0xa8000000
2:

0 comments on commit 673b74b

Please sign in to comment.