ARM: LPAE: add ISBs around MMU enabling code
authorWill Deacon <will.deacon@arm.com>
Tue, 22 Nov 2011 17:30:28 +0000 (17:30 +0000)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 6 Feb 2013 17:48:43 +0000 (19:48 +0200)
commite4c39548f64fb363865b8428e4e57c88c83978b4
tree5e3baac52a5cbd216b87c3eda6890d5b2f63de22
parentbf89e4719ce9745874b2440361c5753a812890b5
ARM: LPAE: add ISBs around MMU enabling code

Before we enable the MMU, we must ensure that the TTBR registers contain
sane values. After the MMU has been enabled, we jump to the *virtual*
address of the following function, so we also need to ensure that the
SCTLR write has taken effect.

This patch adds ISB instructions around the SCTLR write to ensure the
visibility of the above.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/boot/compressed/head.S
arch/arm/include/asm/assembler.h
arch/arm/kernel/head.S
arch/arm/kernel/sleep.S