All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] sh: mach-ecovec24: modify memory area calculation
@ 2009-11-26 10:34 Kuninori Morimoto
  2009-11-26 10:51 ` Matt Fleming
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kuninori Morimoto @ 2009-11-26 10:34 UTC (permalink / raw)
  To: linux-sh

This operation expect to jump to cached area, but "mova" command will
get un-cached area in this case.
This patch subtract 0x20000000 from it to change un-cached area
to cached area

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
---
I think this patch is for 2.6.33

 arch/sh/include/mach-ecovec24/mach/romimage.h |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/sh/include/mach-ecovec24/mach/romimage.h b/arch/sh/include/mach-ecovec24/mach/romimage.h
index 1c8787e..115495d 100644
--- a/arch/sh/include/mach-ecovec24/mach/romimage.h
+++ b/arch/sh/include/mach-ecovec24/mach/romimage.h
@@ -11,10 +11,13 @@
 	icbi	@r0
 
 	/* jump to cached area */
-	mova	2f, r0
+	mov.l	2f, r1
+	mova	3f, r0
+	sub	r1, r0
 	jmp	@r0
 	nop
 
 	.align 2
 1 :	.long 0xa8000000
-2 :
+2 :	.long 0x20000000 /* 0xA0000000 - 0x80000000 */
+3 :
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-30  2:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-26 10:34 [PATCH 1/2] sh: mach-ecovec24: modify memory area calculation Kuninori Morimoto
2009-11-26 10:51 ` Matt Fleming
2009-11-26 11:08 ` Kuninori Morimoto
2009-11-26 11:46 ` Matt Fleming
2009-11-30  2:16 ` Paul Mundt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.