artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f742ef
)
Mark device memory as execute-never to prevent a speculative instruction fetch
author
kettenis
<kettenis@openbsd.org>
Fri, 19 Aug 2016 15:47:27 +0000
(15:47 +0000)
committer
kettenis
<kettenis@openbsd.org>
Fri, 19 Aug 2016 15:47:27 +0000
(15:47 +0000)
to access it.
sys/arch/arm/arm/pmap7.c
patch
|
blob
|
history
diff --git
a/sys/arch/arm/arm/pmap7.c
b/sys/arch/arm/arm/pmap7.c
index
5d765a2
..
51b68bf
100644
(file)
--- a/
sys/arch/arm/arm/pmap7.c
+++ b/
sys/arch/arm/arm/pmap7.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: pmap7.c,v 1.4
0 2016/08/19 13:56:08
kettenis Exp $ */
+/* $OpenBSD: pmap7.c,v 1.4
1 2016/08/19 15:47:27
kettenis Exp $ */
/* $NetBSD: pmap.c,v 1.147 2004/01/18 13:03:50 scw Exp $ */
/*
@@
-1421,7
+1421,7
@@
pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot)
l2b->l2b_occupancy++;
if (pa & PMAP_DEVICE)
- cache_mode = L2_B;
+ cache_mode = L2_B
| L2_V7_S_XN
;
else if (pa & PMAP_NOCACHE)
cache_mode = L2_V7_S_TEX(1);