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:
87744c4
)
arm: mm: hugetlb WT hack
author
Grazvydas Ignotas
<notasas@gmail.com>
Sat, 26 Oct 2013 01:07:52 +0000
(
04:07
+0300)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Sat, 26 Oct 2013 22:48:10 +0000
(
01:48
+0300)
arch/arm/mm/mmu.c
patch
|
blob
|
history
diff --git
a/arch/arm/mm/mmu.c
b/arch/arm/mm/mmu.c
index
795957d
..
7a4e67f
100644
(file)
--- a/
arch/arm/mm/mmu.c
+++ b/
arch/arm/mm/mmu.c
@@
-564,6
+564,12
@@
static void __init build_mem_type_table(void)
arm_hugepmdprotval = mem_types[MT_MEMORY].prot_sect | PMD_SECT_AP_READ
| PMD_SECT_nG;
+
+ /* HACK: make huge pages WT
+ * XXX: mm will not know nothing about this..
+ * FIXME: should only do it on Cortex-A8 or below */
+ arm_hugepmdprotval &= ~(PMD_SECT_WB | PMD_SECT_TEX(1));
+ arm_hugepmdprotval |= PMD_SECT_WT;
#endif
}