msm: Use immediate operations instead of PC-relative loads

Use immediate operations for creating constants in
__enable_mmu to avoid a situation where the constant area
may not have been fully mapped by the initial identity
mapping.

CRs-Fixed: 375963
Change-Id: I0e43854f6a2947d90c075b7e3be60e4612960953
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
This commit is contained in:
Stepan Moskovchenko
2012-07-03 20:36:38 -07:00
parent 3ad5a6cb64
commit c00dfe2cd0
+4 -2
View File
@@ -462,9 +462,11 @@ ENTRY(__turn_mmu_on)
instr_sync
mov r3, r3
#ifdef CONFIG_ARCH_MSM_KRAIT
ldr r3, =0xff00fc00
movw r3, 0xfc00
movt r3, 0xff00
and r3, r9, r3
ldr r4, =0x51000400
movw r4, 0x0400
movt r4, 0x5100
cmp r3, r4
mrceq p15, 7, r3, c15, c0, 2
biceq r3, r3, #0x400