diff options
author | 2001-07-18 10:47:04 +0000 | |
---|---|---|
committer | 2001-07-18 10:47:04 +0000 | |
commit | 2c7adcb761941746e1a79d499114a41fc823273e (patch) | |
tree | 7f878fc1d9bc9e8e0a02da3cc82531c9f04c8059 /sys/kern/kern_malloc_debug.c | |
parent | sync with draft-ietf-ipngwg-p2p-pingpong-00.txt. apply special behavior (diff) | |
download | wireguard-openbsd-2c7adcb761941746e1a79d499114a41fc823273e.tar.xz wireguard-openbsd-2c7adcb761941746e1a79d499114a41fc823273e.zip |
Get rid of the PMAP_NEW option by making it mandatory for all archs.
The archs that didn't have a proper PMAP_NEW now have a dummy implementation
with wrappers around the old functions.
Diffstat (limited to 'sys/kern/kern_malloc_debug.c')
-rw-r--r-- | sys/kern/kern_malloc_debug.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/kern/kern_malloc_debug.c b/sys/kern/kern_malloc_debug.c index 75c61259a19..ffb3835f635 100644 --- a/sys/kern/kern_malloc_debug.c +++ b/sys/kern/kern_malloc_debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_malloc_debug.c,v 1.7 2001/07/17 15:49:22 art Exp $ */ +/* $OpenBSD: kern_malloc_debug.c,v 1.8 2001/07/18 10:47:05 art Exp $ */ /* * Copyright (c) 1999, 2000 Artur Grabowski <art@openbsd.org> @@ -149,12 +149,7 @@ debug_malloc(size, type, flags, addr) splx(s); -#ifdef PMAP_NEW pmap_kenter_pa(md->md_va, md->md_pa, VM_PROT_ALL); -#else - pmap_enter(pmap_kernel(), md->md_va, md->md_pa, VM_PROT_ALL, TRUE, - VM_PROT_READ|VM_PROT_WRITE); -#endif md->md_size = size; md->md_type = type; @@ -213,11 +208,7 @@ debug_free(addr, type) /* * unmap the page. */ -#ifdef PMAP_NEW pmap_kremove(md->md_va, PAGE_SIZE); -#else - pmap_remove(pmap_kernel(), md->md_va, md->md_va + PAGE_SIZE); -#endif splx(s); return 1; |