diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2003-05-09 23:51:24 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2003-05-09 23:51:24 +0000 |
commit | e5a16e7a1cff83232e6cdddb528b0a6fde3cf39c (patch) | |
tree | 9343ef8c5f4343ae7c9736f62490bc27080620e2 | |
parent | 27980039fe4ab0df810445f260b17a1ca477c16d (diff) |
Map page tables non-exec.
deraadt@ ok.
-rw-r--r-- | sys/arch/i386/i386/pmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c index 2aa41487633..ad1e141b4eb 100644 --- a/sys/arch/i386/i386/pmap.c +++ b/sys/arch/i386/i386/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.70 2003/05/05 17:54:59 drahn Exp $ */ +/* $OpenBSD: pmap.c,v 1.71 2003/05/09 23:51:23 art Exp $ */ /* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */ /* @@ -1143,7 +1143,8 @@ pmap_alloc_pvpage(pmap, mode) * pmap is already locked! (...but entering the mapping is safe...) */ - pmap_kenter_pa(pv_cachedva, VM_PAGE_TO_PHYS(pg), VM_PROT_ALL); + pmap_kenter_pa(pv_cachedva, VM_PAGE_TO_PHYS(pg), + VM_PROT_READ|VM_PROT_WRITE); pvpage = (struct pv_page *) pv_cachedva; pv_cachedva = 0; return(pmap_add_pvpage(pvpage, mode != ALLOCPV_NONEED)); |