diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-10-24 11:26:40 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-12-11 10:53:14 +0100 |
commit | 2e2c9de207be043ee80161971c814d740759d3bc (patch) | |
tree | 8c818e8ea95b4c9cbfc9a25ab8719c12954d9f75 /arch/arm/mm/ioremap.c | |
parent | ARM: add support to dump the kernel page tables (diff) | |
download | linux-2e2c9de207be043ee80161971c814d740759d3bc.tar.xz linux-2e2c9de207be043ee80161971c814d740759d3bc.zip |
ARM: add permission annotations to MT_MEMORY* mapping types
Document the permissions which the various MT_MEMORY* mapping types
will provide.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/ioremap.c')
-rw-r--r-- | arch/arm/mm/ioremap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index f123d6eb074b..f9c32ba73544 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c @@ -392,9 +392,9 @@ __arm_ioremap_exec(phys_addr_t phys_addr, size_t size, bool cached) unsigned int mtype; if (cached) - mtype = MT_MEMORY; + mtype = MT_MEMORY_RWX; else - mtype = MT_MEMORY_NONCACHED; + mtype = MT_MEMORY_RWX_NONCACHED; return __arm_ioremap_caller(phys_addr, size, mtype, __builtin_return_address(0)); |