summaryrefslogtreecommitdiff
path: root/sys/arch/arm/include/pmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/arm/include/pmap.h')
-rw-r--r--sys/arch/arm/include/pmap.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/arm/include/pmap.h b/sys/arch/arm/include/pmap.h
index c3a1729846f..718e1bc61b5 100644
--- a/sys/arch/arm/include/pmap.h
+++ b/sys/arch/arm/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.42 2016/08/10 21:22:43 kettenis Exp $ */
+/* $OpenBSD: pmap.h,v 1.43 2016/08/19 13:56:08 kettenis Exp $ */
/* $NetBSD: pmap.h,v 1.76 2003/09/06 09:10:46 rearnsha Exp $ */
/*
@@ -758,10 +758,7 @@ L2_S_PROT(int ku, vm_prot_t pr)
static __inline boolean_t
l2pte_is_writeable(pt_entry_t pte, struct pmap *pm)
{
- /* XXX use of L2_V7_S_XN */
- return (pte & L2_S_PROT_MASK & ~L2_V7_S_XN) ==
- L2_S_PROT(pm == pmap_kernel() ? PTE_KERNEL : PTE_USER,
- PROT_WRITE);
+ return (pte & L2_V7_AP(0x4)) == 0;
}
#endif