git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12eb2c0
)
arm: don't limit mmap at address 0
author
Grazvydas Ignotas
<notasas@gmail.com>
Sat, 27 Feb 2016 16:32:15 +0000
(18:32 +0200)
committer
Grazvydas 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
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/pgtable.h
b/arch/arm/include/asm/pgtable.h
index
b1e71b4
..
1ce99a7
100644
(file)
--- 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,