* [PATCH 2/2 v2] sh: mach-kfr2r09: modify memory area calculation bug
@ 2009-11-26 11:34 Kuninori Morimoto
2009-11-26 11:51 ` [PATCH 2/2 v2] sh: mach-kfr2r09: modify memory area Matt Fleming
0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2009-11-26 11: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 change it 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-kfr2r09/mach/romimage.h | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/arch/sh/include/mach-kfr2r09/mach/romimage.h b/arch/sh/include/mach-kfr2r09/mach/romimage.h
index a110823..8ce989a 100644
--- a/arch/sh/include/mach-kfr2r09/mach/romimage.h
+++ b/arch/sh/include/mach-kfr2r09/mach/romimage.h
@@ -3,6 +3,7 @@
* the assembly code is the first code to be executed in the romImage
*/
+#include <cpu/addrspace.h>
#include <asm/romimage-macros.h>
#include "partner-jet-setup.txt"
@@ -11,10 +12,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:
+1 : .long 0xa8000000
+2 : .long P2SEG - P1SEG /* cached_to_uncached */
+3 :
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2 v2] sh: mach-kfr2r09: modify memory area
2009-11-26 11:34 [PATCH 2/2 v2] sh: mach-kfr2r09: modify memory area calculation bug Kuninori Morimoto
@ 2009-11-26 11:51 ` Matt Fleming
0 siblings, 0 replies; 2+ messages in thread
From: Matt Fleming @ 2009-11-26 11:51 UTC (permalink / raw)
To: linux-sh
On Thu, Nov 26, 2009 at 08:34:33PM +0900, Kuninori Morimoto wrote:
> This operation expect to jump to cached area, but "mova" command will
> get un-cached area in this case.
> This patch change it un-cached area to cached area
>
> Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Acked-by: Matt Fleming <matt@console-pimps.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-26 11:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-26 11:34 [PATCH 2/2 v2] sh: mach-kfr2r09: modify memory area calculation bug Kuninori Morimoto
2009-11-26 11:51 ` [PATCH 2/2 v2] sh: mach-kfr2r09: modify memory area Matt Fleming
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.