Commit 8409d57b authored by Santosh Shilimkar's avatar Santosh Shilimkar Committed by Kevin Hilman

OMAP3: PM: Fix the MMU on sequence in the asm code

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: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
parent 4444d712
...@@ -617,12 +617,17 @@ usettbr0: ...@@ -617,12 +617,17 @@ usettbr0:
ldr r2, cache_pred_disable_mask ldr r2, cache_pred_disable_mask
and r4, r2 and r4, r2
mcr p15, 0, r4, c1, c0, 0 mcr p15, 0, r4, c1, c0, 0
dsb
isb
ldr r0, =restoremmu_on
bx r0
/* /*
* ============================== * ==============================
* == Exit point from OFF mode == * == Exit point from OFF mode ==
* ============================== * ==============================
*/ */
restoremmu_on:
ldmfd sp!, {r0-r12, pc} @ restore regs and return ldmfd sp!, {r0-r12, pc} @ restore regs and return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment