aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2011-11-15 00:26:28 -0500
committerGreg Ungerer <gerg@uclinux.org>2011-12-24 06:47:58 -0500
commitec84118795fa687192de04e0dcb63178e4bf63e5 (patch)
tree05be7b9c7ed8a6a9ea01afdb8cb7fd3aec9f02b7 /arch
parent84f3fb7a2aadeda3c0a34e61591a8eccf5e367b4 (diff)
m68knommu: disable cache early in startup for ColdFire
Disbale the CPU cache really early in the ColdFire startup code. We set up some variables for RAM sizing and we want to make they stick in RAM. Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/m68k/platform/coldfire/head.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/m68k/platform/coldfire/head.S b/arch/m68k/platform/coldfire/head.S
index c33483824a2e..49666b4dd091 100644
--- a/arch/m68k/platform/coldfire/head.S
+++ b/arch/m68k/platform/coldfire/head.S
@@ -143,6 +143,9 @@ __HEAD
143_start: 143_start:
144 nop /* filler */ 144 nop /* filler */
145 movew #0x2700, %sr /* no interrupts */ 145 movew #0x2700, %sr /* no interrupts */
146 movel #CACHE_INIT,%d0 /* disable cache */
147 movec %d0,%CACR
148 nop
146#if defined(CONFIG_UBOOT) 149#if defined(CONFIG_UBOOT)
147 movel %sp,_init_sp /* save initial stack pointer */ 150 movel %sp,_init_sp /* save initial stack pointer */
148#endif 151#endif
@@ -176,9 +179,6 @@ _start:
176 * it is very similar. Define the exact settings in the headers 179 * it is very similar. Define the exact settings in the headers
177 * then the code here is the same for all. 180 * then the code here is the same for all.
178 */ 181 */
179 movel #CACHE_INIT,%d0 /* invalidate whole cache */
180 movec %d0,%CACR
181 nop
182 movel #ACR0_MODE,%d0 /* set RAM region for caching */ 182 movel #ACR0_MODE,%d0 /* set RAM region for caching */
183 movec %d0,%ACR0 183 movec %d0,%ACR0
184 movel #ACR1_MODE,%d0 /* anything else to cache? */ 184 movel #ACR1_MODE,%d0 /* anything else to cache? */