]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: 8709/1: NOMMU: Disallow MPU for XIP
authorVladimir Murzin <vladimir.murzin@arm.com>
Mon, 16 Oct 2017 11:55:06 +0000 (12:55 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 23 Oct 2017 15:59:06 +0000 (16:59 +0100)
It seems that MPU never worked with XIP, so we just disallow such
combination.

Tested-by: Szemző András <sza@esh.hu>
Tested-by: Alexandre TORGUE <alexandre.torgue@st.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/Kconfig-nommu

index b7576349528c12a8ef7533b6b66bc9a68b8dc9f9..6d18395da24d089c358974fd293722f7d22e7923 100644 (file)
@@ -52,7 +52,7 @@ config REMAP_VECTORS_TO_RAM
 
 config ARM_MPU
        bool 'Use the ARM v7 PMSA Compliant MPU'
-       depends on CPU_V7
+       depends on !XIP_KERNEL && CPU_V7
        default y
        help
          Some ARM systems without an MMU have instead a Memory Protection