diff options
author | 2001-12-08 02:24:05 +0000 | |
---|---|---|
committer | 2001-12-08 02:24:05 +0000 | |
commit | 0e5798cfdd2fe5c1ab97b42a00980df6003e9e42 (patch) | |
tree | b00c11dad4487ffa3a600cf739b63c20317e7376 /sys/kern/kern_malloc_debug.c | |
parent | Add ERRORS and STANDARDS sections (diff) | |
download | wireguard-openbsd-0e5798cfdd2fe5c1ab97b42a00980df6003e9e42.tar.xz wireguard-openbsd-0e5798cfdd2fe5c1ab97b42a00980df6003e9e42.zip |
Sprinkle pmap_update calls where relevant and some other
misc pmap usage fixes.
Diffstat (limited to 'sys/kern/kern_malloc_debug.c')
-rw-r--r-- | sys/kern/kern_malloc_debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc_debug.c b/sys/kern/kern_malloc_debug.c index dab61b5ac40..56a9319067d 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.14 2001/11/06 19:53:20 miod Exp $ */ +/* $OpenBSD: kern_malloc_debug.c,v 1.15 2001/12/08 02:24:07 art Exp $ */ /* * Copyright (c) 1999, 2000 Artur Grabowski <art@openbsd.org> @@ -140,6 +140,7 @@ debug_malloc(unsigned long size, int type, int flags, void **addr) splx(s); pmap_kenter_pa(md->md_va, md->md_pa, VM_PROT_ALL); + pmap_update(pmap_kernel()); md->md_size = size; md->md_type = type; @@ -196,6 +197,7 @@ debug_free(void *addr, int type) * unmap the page. */ pmap_kremove(md->md_va, PAGE_SIZE); + pmap_update(pmap_kernel()); splx(s); return (1); |