summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arm/armv7/mmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/arm/armv7/mmu.c b/src/arch/arm/armv7/mmu.c
index de7fa40f7e..581c57244e 100644
--- a/src/arch/arm/armv7/mmu.c
+++ b/src/arch/arm/armv7/mmu.c
@@ -302,6 +302,6 @@ void mmu_init(void)
0 << 16 | 0 << 0 /* Use TTBR0 for all addresses */
);
- /* disable domain-level checking of permissions */
- write_dacr(~0);
+ /* Set domain 0 to Client so XN bit works (to prevent prefetches) */
+ write_dacr(0x5);
}