summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1997-08-05 01:32:52 +0000
committerdyson <dyson@FreeBSD.org>1997-08-05 01:32:52 +0000
commit96f688be11c7b4164bed9c1a9974eea4e7cc9f04 (patch)
treeb7ee2ffda96501c4c821e5816ebf97da3ced1455 /sys/vm
parentfd1644cfb421524884f4a6eec283db0f372e0fea (diff)
downloadFreeBSD-src-96f688be11c7b4164bed9c1a9974eea4e7cc9f04.zip
FreeBSD-src-96f688be11c7b4164bed9c1a9974eea4e7cc9f04.tar.gz
Modify pmap to use our new memory allocator. Also, change the vm_map_entry
allocations to be interrupt safe.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/pmap.h3
-rw-r--r--sys/vm/vm_map.c7
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/vm/pmap.h b/sys/vm/pmap.h
index fa9c1bf..c27110c 100644
--- a/sys/vm/pmap.h
+++ b/sys/vm/pmap.h
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: pmap.h,v 1.20 1997/04/13 01:48:33 dyson Exp $
+ * $Id: pmap.h,v 1.21 1997/07/17 04:34:02 dyson Exp $
*/
/*
@@ -131,6 +131,7 @@ void pmap_swapout_proc __P((struct proc *p));
void pmap_swapin_proc __P((struct proc *p));
void pmap_activate __P((struct proc *p));
vm_offset_t pmap_addr_hint __P((vm_object_t obj, vm_offset_t addr, vm_size_t size));
+void pmap_init2 __P((void));
#endif /* KERNEL */
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 2b6680e..5c7a77b 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.79 1997/07/27 04:44:12 dyson Exp $
+ * $Id: vm_map.c,v 1.80 1997/08/05 00:01:56 dyson Exp $
*/
/*
@@ -207,6 +207,7 @@ vmspace_alloc(min, max, pageable)
void
vm_init2(void) {
+ pmap_init2();
_zinit(kmapentzone, &kmapentobj,
NULL, 0, 4096, ZONE_INTERRUPT, 4);
_zinit(mapentzone, &mapentobj,
@@ -303,7 +304,7 @@ vm_map_entry_dispose(map, entry)
vm_map_t map;
vm_map_entry_t entry;
{
- zfree((map->system_map || !mapentzone) ? kmapentzone : mapentzone, entry);
+ zfreei((map->system_map || !mapentzone) ? kmapentzone : mapentzone, entry);
}
/*
@@ -316,7 +317,7 @@ static vm_map_entry_t
vm_map_entry_create(map)
vm_map_t map;
{
- return zalloc((map->system_map || !mapentzone) ? kmapentzone : mapentzone);
+ return zalloci((map->system_map || !mapentzone) ? kmapentzone : mapentzone);
}
/*
OpenPOWER on IntegriCloud