From: Grazvydas Ignotas Date: Sat, 27 Feb 2016 16:32:15 +0000 (+0200) Subject: arm: don't limit mmap at address 0 X-Git-Tag: sz_174~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=05d5f6e1127de5b7b244d200b9245985276f602e arm: don't limit mmap at address 0 Pandora's Cortex-A8 uses high vectors, so we can map there - might be useful for some emulators. --- diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h index b1e71b48edc1..1ce99a73e18c 100644 --- a/arch/arm/include/asm/pgtable.h +++ b/arch/arm/include/asm/pgtable.h @@ -63,6 +63,12 @@ extern void __pgd_error(const char *file, int line, pgd_t); */ #define FIRST_USER_ADDRESS PAGE_SIZE +/* OMAP hack - high vector CPUs, so don't limit it */ +#ifdef CONFIG_ARCH_OMAP +#undef FIRST_USER_ADDRESS +#define FIRST_USER_ADDRESS 0 +#endif + /* * The pgprot_* and protection_map entries will be fixed up in runtime * to include the cachable and bufferable bits based on memory policy,