]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7066/1: proc-v7: disable SCTLR.TE when disabling MMU
authorWill Deacon <will.deacon@arm.com>
Fri, 26 Aug 2011 15:34:51 +0000 (16:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 28 Aug 2011 09:39:53 +0000 (10:39 +0100)
commit0236253f98823665cc18cd1abf3a2c408bad6c93
tree7af7ac41d68c1bf81a64745880645883c6e17417
parentf5fc5e144fd3a12e4b566f532148580c23995712
ARM: 7066/1: proc-v7: disable SCTLR.TE when disabling MMU

cpu_v7_reset disables the MMU and then branches to the provided address.
On Thumb-2 kernels, we should take care to clear the Thumb Exception
enable bit in the System Control Register, otherwise this may wreak
havok in the code to which we are branching (for example, an ARM kernel
image via kexec).

Reviewed-by: Dave Martin <dave.martin@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/proc-v7.S