diff options
author | dyson <dyson@FreeBSD.org> | 1996-04-29 22:04:57 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-04-29 22:04:57 +0000 |
commit | 4f2a49e71145a846684c6525110b9f1dc755bf02 (patch) | |
tree | 6d290801e7650adbe00a5f8472c65c9deda4c9e3 /sys/vm | |
parent | 11cf91d4af7230fc7d73dd815f2dc35a9a69f18a (diff) | |
download | FreeBSD-src-4f2a49e71145a846684c6525110b9f1dc755bf02.zip FreeBSD-src-4f2a49e71145a846684c6525110b9f1dc755bf02.tar.gz |
Move the map entry allocations from the kmem_map to the kernel_map. As
a side effect, correct the associated object offset.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_map.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 26b6446..606e1c5 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_map.c,v 1.41 1996/03/28 04:53:24 dyson Exp $ + * $Id: vm_map.c,v 1.42 1996/04/03 05:23:38 dyson Exp $ */ /* @@ -216,7 +216,7 @@ vmspace_alloc(min, max, pageable) mapvmpgcnt = (cnt.v_page_count * sizeof(struct vm_map_entry) + PAGE_SIZE - 1) / PAGE_SIZE; s = splhigh(); - mapvm_start = mapvm = kmem_alloc_pageable(kmem_map, mapvmpgcnt * PAGE_SIZE); + mapvm_start = mapvm = kmem_alloc_pageable(kernel_map, mapvmpgcnt * PAGE_SIZE); mapvmmax = mapvm_start + mapvmpgcnt * PAGE_SIZE; splx(s); if (!mapvm) @@ -340,8 +340,8 @@ vm_map_entry_create(map) if (mapvmpgcnt && mapvm) { vm_page_t m; - m = vm_page_alloc(kmem_object, - OFF_TO_IDX(mapvm - vm_map_min(kmem_map)), + m = vm_page_alloc(kernel_object, + OFF_TO_IDX(mapvm - vm_map_min(kernel_map)), (map == kmem_map) ? VM_ALLOC_INTERRUPT : VM_ALLOC_NORMAL); if (m) { int newentries; |