Skip to contentSkip to conversation

sh: jump to p1 during boot on kfr2r09

PATCH New Magnus Damm 1 participant 1 message Aug 20, 2009 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: jump to p1 during boot on kfr2r09

From: Magnus Damm <[email protected]>

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.

---

 arch/sh/include/mach-kfr2r09/mach/romimage.h |   13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/sh/include/mach-kfr2r09/mach/romimage.h +13 -0
@@ -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: