mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
ARM: pm: some ARMv7 requires a dsb in resume to ensure correctness
Add a dsb after the isb to ensure that the previous writes to the CP15 registers take effect before we enable the MMU. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
1c0270cd3a
commit
f35235a315
1 changed files with 1 additions and 0 deletions
|
@ -255,6 +255,7 @@ ENTRY(cpu_v7_do_resume)
|
||||||
mcr p15, 0, r4, c10, c2, 0 @ write PRRR
|
mcr p15, 0, r4, c10, c2, 0 @ write PRRR
|
||||||
mcr p15, 0, r5, c10, c2, 1 @ write NMRR
|
mcr p15, 0, r5, c10, c2, 1 @ write NMRR
|
||||||
isb
|
isb
|
||||||
|
dsb
|
||||||
mov r0, r9 @ control register
|
mov r0, r9 @ control register
|
||||||
mov r2, r7, lsr #14 @ get TTB0 base
|
mov r2, r7, lsr #14 @ get TTB0 base
|
||||||
mov r2, r2, lsl #14
|
mov r2, r2, lsl #14
|
||||||
|
|
Loading…
Reference in a new issue