diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-18 10:47:06 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-18 10:47:06 +0000 |
commit | 7014e9bdb5c2bbd8611c221808ec547e916bbb79 (patch) | |
tree | 696ce0ce037cffc3cf643967ca0d7b194de7df7a /sys/kern | |
parent | 33fbe5eea52c9938f6f888b886db7cbe2583b9d3 (diff) |
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')
-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; |