[omap3] make the L2 init actually work
diff --git a/arch/arm/arch.c b/arch/arm/arch.c
index ae2fcf2..37b557c 100644
--- a/arch/arm/arch.c
+++ b/arch/arm/arch.c
@@ -50,11 +50,6 @@
platform_init_mmu_mappings();
#endif
-#if PLATFORM_OMAP3
- /* do an omap3 specific setup of the L2 */
- __asm__ volatile("mov r12, #1; .word 0xe1600070" ::: "r12");
-#endif
-
/* turn the cache back on */
arch_enable_cache(UCACHE);
diff --git a/arch/arm/crt0.S b/arch/arm/crt0.S
index 40cbf27..801e2b9 100644
--- a/arch/arm/crt0.S
+++ b/arch/arm/crt0.S
@@ -45,6 +45,12 @@
mcr p15, 0, r0, c1, c0, 0
#endif
+#if PLATFORM_OMAP3
+ /* do an omap3 specific setup of the L2 */
+ mov r12, #1
+ .word 0xe1600070
+#endif
+
/* set up the stack for irq, fiq, abort, undefined, system/user, and lastly supervisor mode */
mrs r0, cpsr
bic r0, r0, #0x1f