aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/pgtable.h
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2011-11-07 17:43:41 -0600
committerNicolas Pitre <nicolas.pitre@linaro.org>2011-11-14 12:43:25 -0500
commitf6b252b6b92671d2633008408c06d35c26e55ecf (patch)
tree62f4a805dbd4c62fd10ba6b8c0d847fa243b358d /arch/arm/include/asm/pgtable.h
parent3784bf0c54114e6d47bdc46178938dd280f39492 (diff)
ARM: topdown mmap supportlinux-linaro-3.1-2011.11-0
Similar to other architectures, this adds topdown mmap support in user process address space allocation policy. This allows mmap sizes greater than 2GB. This support is largely copied from MIPS and the generic implementations. The address space randomization is moved into arch_pick_mmap_layout. Tested on V-Express with ubuntu and a mmap test from here: https://bugs.launchpad.net/bugs/861296 Signed-off-by: Rob Herring <rob.herring@calxeda.com> [ The fact that the randomization is moved to arch_pick_mmap_layout is greatly weakening its effectiveness. I'm merging this patch regardless in order to give the actual fix (allow >2GB mmap) more exposure in the mean time. --np ] Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/pgtable.h')
-rw-r--r--arch/arm/include/asm/pgtable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h
index aec18abf4e6..9d5255ae784 100644
--- a/arch/arm/include/asm/pgtable.h
+++ b/arch/arm/include/asm/pgtable.h
@@ -305,6 +305,7 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
* We provide our own arch_get_unmapped_area to cope with VIPT caches.
*/
#define HAVE_ARCH_UNMAPPED_AREA
+#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN
/*
* remap a physical page `pfn' of size `size' with page protection `prot'