arm: don't limit mmap at address 0
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 27 Feb 2016 16:32:15 +0000 (18:32 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 28 Feb 2016 01:55:13 +0000 (03:55 +0200)
Pandora's Cortex-A8 uses high vectors, so we can map there -
might be useful for some emulators.

arch/arm/include/asm/pgtable.h

index b1e71b4..1ce99a7 100644 (file)
@@ -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,