summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/pmsa-v7.c
diff options
context:
space:
mode:
authorVladimir Murzin <vladimir.murzin@arm.com>2017-12-01 10:19:11 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2017-12-17 23:16:19 +0100
commit7710cc691cfc5ad457173944d989875a6e79d238 (patch)
treeb68740ba838b4d70eae8c09581f966eeb5017434 /arch/arm/mm/pmsa-v7.c
parentARM: 8727/1: MAINTAINERS: Update brcmstb entries to cover B15 code (diff)
downloadlinux-7710cc691cfc5ad457173944d989875a6e79d238.tar.xz
linux-7710cc691cfc5ad457173944d989875a6e79d238.zip
ARM: 8732/1: NOMMU: Allow userspace to access background MPU region
Currently, with MPU enabled, we prohibit userspace access to anything except RAM. Benjamin, reported that because of that his userspace application cannot access framebuffer's memory he reserved in device tree. It turns out we have no option other than to allow userspace access memory covered by background region. Reported-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> 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>
Diffstat (limited to 'arch/arm/mm/pmsa-v7.c')
-rw-r--r--arch/arm/mm/pmsa-v7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/pmsa-v7.c b/arch/arm/mm/pmsa-v7.c
index 976df60ac426..650998912c1c 100644
--- a/arch/arm/mm/pmsa-v7.c
+++ b/arch/arm/mm/pmsa-v7.c
@@ -433,7 +433,7 @@ void __init mpu_setup(void)
/* Background */
err |= mpu_setup_region(region++, 0, 32,
- MPU_ACR_XN | MPU_RGN_STRONGLY_ORDERED | MPU_AP_PL1RW_PL0NA,
+ MPU_ACR_XN | MPU_RGN_STRONGLY_ORDERED | MPU_AP_PL1RW_PL0RW,
0, false);
#ifdef CONFIG_XIP_KERNEL