summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-12-19 08:58:05 +0000
committerart <art@openbsd.org>2001-12-19 08:58:05 +0000
commit1414b0faee630b2a2d49752ab9b1fe4209fe6bfd (patch)
tree489b0b0b16606f48bda8c6e8ea28957b5601320d /sys/kern/kern_malloc.c
parentbasic KNF done while i was looking for something else (diff)
downloadwireguard-openbsd-1414b0faee630b2a2d49752ab9b1fe4209fe6bfd.tar.xz
wireguard-openbsd-1414b0faee630b2a2d49752ab9b1fe4209fe6bfd.zip
UBC was a disaster. It worked very good when it worked, but on some
machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience.
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index aee61ff48d6..4584481ba7d 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.44 2001/12/05 17:49:06 art Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.45 2001/12/19 08:58:06 art Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -46,7 +46,7 @@
#include <uvm/uvm_extern.h>
-static struct vm_map kmem_map_store;
+static struct vm_map_intrsafe kmem_map_store;
struct vm_map *kmem_map = NULL;
#ifdef NKMEMCLUSTERS
@@ -492,7 +492,7 @@ kmeminit()
kmem_map = uvm_km_suballoc(kernel_map, (vaddr_t *)&kmembase,
(vaddr_t *)&kmemlimit, (vsize_t)(nkmempages * PAGE_SIZE),
- VM_MAP_INTRSAFE, FALSE, &kmem_map_store);
+ VM_MAP_INTRSAFE, FALSE, &kmem_map_store.vmi_map);
kmemusage = (struct kmemusage *) uvm_km_zalloc(kernel_map,
(vsize_t)(nkmempages * sizeof(struct kmemusage)));
#ifdef KMEMSTATS