public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: jump to p1 during boot on kfr2r09
@ 2009-08-20 13:59 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2009-08-20 13:59 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@igel.co.jp>

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>
---

 arch/sh/include/mach-kfr2r09/mach/romimage.h |   13 +++++++++++++
 1 file changed, 13 insertions(+)

--- 0001/arch/sh/include/mach-kfr2r09/mach/romimage.h
+++ work/arch/sh/include/mach-kfr2r09/mach/romimage.h	2009-08-20 14:22:06.000000000 +0900
@@ -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:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-20 13:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20 13:59 [PATCH] sh: jump to p1 during boot on kfr2r09 Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox