forked from rubenslte/android_kernel_samsung_msm8226
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user