Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Don't pass VM_PROT_EXEC to pmap_kenter_pa().



details:   https://anonhg.NetBSD.org/src/rev/ae8b5f493f3b
branches:  trunk
changeset: 535304:ae8b5f493f3b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Aug 14 15:21:31 2002 +0000

description:
Don't pass VM_PROT_EXEC to pmap_kenter_pa().

diffstat:

 sys/kern/kern_malloc_debug.c |  6 +++---
 sys/uvm/uvm_km.c             |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 39dbe5424d2d -r ae8b5f493f3b sys/kern/kern_malloc_debug.c
--- a/sys/kern/kern_malloc_debug.c      Wed Aug 14 15:08:57 2002 +0000
+++ b/sys/kern/kern_malloc_debug.c      Wed Aug 14 15:21:31 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_malloc_debug.c,v 1.6 2002/03/08 20:48:40 thorpej Exp $    */
+/*     $NetBSD: kern_malloc_debug.c,v 1.7 2002/08/14 15:21:31 thorpej Exp $    */
 
 /*
  * Copyright (c) 1999, 2000 Artur Grabowski <art%openbsd.org@localhost>
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_malloc_debug.c,v 1.6 2002/03/08 20:48:40 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_malloc_debug.c,v 1.7 2002/08/14 15:21:31 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -144,7 +144,7 @@
        debug_malloc_allocs++;
        splx(s);
 
-       pmap_kenter_pa(md->md_va, md->md_pa, VM_PROT_ALL);
+       pmap_kenter_pa(md->md_va, md->md_pa, VM_PROT_READ|VM_PROT_WRITE);
 
        md->md_size = size;
        md->md_type = type;
diff -r 39dbe5424d2d -r ae8b5f493f3b sys/uvm/uvm_km.c
--- a/sys/uvm/uvm_km.c  Wed Aug 14 15:08:57 2002 +0000
+++ b/sys/uvm/uvm_km.c  Wed Aug 14 15:21:31 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_km.c,v 1.56 2002/03/07 20:15:32 thorpej Exp $      */
+/*     $NetBSD: uvm_km.c,v 1.57 2002/08/14 15:23:18 thorpej Exp $      */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -134,7 +134,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.56 2002/03/07 20:15:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.57 2002/08/14 15:23:18 thorpej Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -457,7 +457,7 @@
 
                if (obj == NULL) {
                        pmap_kenter_pa(loopva, VM_PAGE_TO_PHYS(pg),
-                           VM_PROT_ALL);
+                           VM_PROT_READ | VM_PROT_WRITE);
                } else {
                        pmap_enter(map->pmap, loopva, VM_PAGE_TO_PHYS(pg),
                            UVM_PROT_ALL,



Home | Main Index | Thread Index | Old Index