OMAP3: PM: Fix the MMU on sequence in the asm code
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Sun, 23 Jan 2011 10:34:39 +0000 (16:04 +0530)
committerKevin Hilman <khilman@ti.com>
Thu, 10 Mar 2011 20:23:12 +0000 (12:23 -0800)
Add necessary barriers after enabling MMU. Also use the sane way to
load pc and jump to it instead of executing ldma first up.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/sleep34xx.S

index 1c17ee81cb12296b8271f182b9a2b1908d508aa5..a31845a201e93b5e7db153185b0f4c4bac54d615 100644 (file)
@@ -617,12 +617,17 @@ usettbr0:
        ldr     r2, cache_pred_disable_mask
        and     r4, r2
        mcr     p15, 0, r4, c1, c0, 0
+       dsb
+       isb
+       ldr     r0, =restoremmu_on
+       bx      r0
 
 /*
  * ==============================
  * == Exit point from OFF mode ==
  * ==============================
  */
+restoremmu_on:
        ldmfd   sp!, {r0-r12, pc}       @ restore regs and return