summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/include/pmap.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-01-22 18:16:36 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-01-22 18:16:36 +0000
commit18c397d8a8ce974998380a8fd88671f84248deb8 (patch)
tree9d412d1711e54ba842f37e6227325554cd48db04 /sys/arch/hppa/include/pmap.h
parent9143499c7e01a75fd884374b9aa52d0930aa55f4 (diff)
consistantly use uvm_prot_* vs vm_prot_* evewrhere
Diffstat (limited to 'sys/arch/hppa/include/pmap.h')
-rw-r--r--sys/arch/hppa/include/pmap.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/hppa/include/pmap.h b/sys/arch/hppa/include/pmap.h
index 019b26f9e41..5e25b2851f0 100644
--- a/sys/arch/hppa/include/pmap.h
+++ b/sys/arch/hppa/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.26 2002/11/07 19:22:56 mickey Exp $ */
+/* $OpenBSD: pmap.h,v 1.27 2003/01/22 18:16:35 mickey Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -132,8 +132,8 @@ pmap_prot(struct pmap *pmap, int prot)
static __inline void
pmap_page_protect(struct vm_page *pg, vm_prot_t prot)
{
- if ((prot & VM_PROT_WRITE) == 0) {
- if (prot & (VM_PROT_READ|VM_PROT_EXECUTE))
+ if ((prot & UVM_PROT_WRITE) == 0) {
+ if (prot & (UVM_PROT_RX))
pmap_changebit(pg, 0, PTE_PROT(TLB_WRITE));
else
pmap_page_remove(pg);
@@ -143,8 +143,8 @@ pmap_page_protect(struct vm_page *pg, vm_prot_t prot)
static __inline void
pmap_protect(struct pmap *pmap, vaddr_t sva, vaddr_t eva, vm_prot_t prot)
{
- if ((prot & VM_PROT_WRITE) == 0) {
- if (prot & (VM_PROT_READ|VM_PROT_EXECUTE))
+ if ((prot & UVM_PROT_WRITE) == 0) {
+ if (prot & (UVM_PROT_RX))
pmap_write_protect(pmap, sva, eva, prot);
else
pmap_remove(pmap, sva, eva);