summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorye janboe <janboe.ye@gmail.com>2009-10-05 22:31:44 +0200
committerTony Lindgren <tony@atomide.com>2009-10-06 17:31:50 +0200
commit913b143ffac8ade63e576c4cb48908a257106bdc (patch)
tree96e9e3f5f568acbeb4237f55ebfcd7c5c7797c68 /arch/arm
parentomap: Lock DPLL5 at boot (diff)
downloadlinux-913b143ffac8ade63e576c4cb48908a257106bdc.tar.xz
linux-913b143ffac8ade63e576c4cb48908a257106bdc.zip
omap: SRAM: flush the right address after memcpy in omap_sram_push
the original flush operation is to flush the function address which is copied from. But we do not change the function code and it is not necessary to flush it. Signed-off-by: janboe <janboe.ye@gmail.com> Acked-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/plat-omap/sram.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c
index 925f64711c37..75d1f26e5b17 100644
--- a/arch/arm/plat-omap/sram.c
+++ b/arch/arm/plat-omap/sram.c
@@ -270,7 +270,8 @@ void * omap_sram_push(void * start, unsigned long size)
omap_sram_ceil -= size;
omap_sram_ceil = ROUND_DOWN(omap_sram_ceil, sizeof(void *));
memcpy((void *)omap_sram_ceil, start, size);
- flush_icache_range((unsigned long)start, (unsigned long)(start + size));
+ flush_icache_range((unsigned long)omap_sram_ceil,
+ (unsigned long)(omap_sram_ceil + size));
return (void *)omap_sram_ceil;
}