summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_kern.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-04-24 04:16:45 +0000
committerdyson <dyson@FreeBSD.org>1996-04-24 04:16:45 +0000
commit6c1ec28cad770d94ddd85b4afe8fd30251744506 (patch)
tree24c1be208d99dff66f1415eb70d718856cccd9ae /sys/vm/vm_kern.c
parentd91e0c6ebeced877c44174fc76878d154e2752cf (diff)
downloadFreeBSD-src-6c1ec28cad770d94ddd85b4afe8fd30251744506.zip
FreeBSD-src-6c1ec28cad770d94ddd85b4afe8fd30251744506.tar.gz
This fixes kmem_malloc/kmem_free (and malloc/free of objects of > 8K).
A page index was calculated incorrectly in vm_kern, and vm_object_page_remove removed pages that should not have been.
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r--sys/vm/vm_kern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index 35eae4f..dcefdc0 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_kern.c,v 1.21 1996/01/19 03:59:48 dyson Exp $
+ * $Id: vm_kern.c,v 1.22 1996/01/31 12:05:52 davidg Exp $
*/
/*
@@ -314,7 +314,7 @@ kmem_malloc(map, size, waitflag)
panic("kmem_malloc: kmem_map too small");
return (0);
}
- offset = addr - vm_map_min(kmem_map);
+ offset = addr - VM_MIN_KERNEL_ADDRESS;
vm_object_reference(kmem_object);
vm_map_insert(map, kmem_object, offset, addr, addr + size,
VM_PROT_ALL, VM_PROT_ALL, 0);
OpenPOWER on IntegriCloud