? out Index: vm/vm_map.c =================================================================== RCS file: /cvs/src/sys/vm/vm_map.c,v retrieving revision 1.22 diff -u -p -u -r1.22 vm_map.c --- vm/vm_map.c 1 Mar 2004 06:33:24 -0000 1.22 +++ vm/vm_map.c 19 Mar 2004 18:33:41 -0000 @@ -330,22 +330,6 @@ vm_map_init(struct vm_map *map, vm_offse } /* - * vm_map_entry_cpu_init: - * - * Set an initial negative count so the first attempt to reserve - * space preloads a bunch of vm_map_entry's for this cpu. This - * routine is called in early boot so we cannot just call - * vm_map_entry_reserve(). - * - * May be called for a gd other then mycpu. - */ -void -vm_map_entry_reserve_cpu_init(globaldata_t gd) -{ - gd->gd_vme_avail -= MAP_RESERVE_COUNT * 2; -} - -/* * vm_map_entry_reserve: * * Reserves vm_map_entry structures so code later on can manipulate Index: vm/vm_map.h =================================================================== RCS file: /cvs/src/sys/vm/vm_map.h,v retrieving revision 1.12 diff -u -p -u -r1.12 vm_map.h --- vm/vm_map.h 1 Mar 2004 06:33:24 -0000 1.12 +++ vm/vm_map.h 19 Mar 2004 18:33:41 -0000 @@ -72,6 +72,8 @@ #ifndef _VM_MAP_ #define _VM_MAP_ +struct globaldata; + /* * Types defined: * @@ -370,6 +372,22 @@ vmspace_resident_count(struct vmspace *v } /* + * vm_map_entry_cpu_init: + * + * Set an initial negative count so the first attempt to reserve + * space preloads a bunch of vm_map_entry's for this cpu. This + * routine is called in early boot so we cannot just call + * vm_map_entry_reserve(). + * + * May be called for a gd other then mycpu. + */ +static __inline void +vm_map_entry_reserve_cpu_init(globaldata_t gd) +{ + gd->gd_vme_avail -= MAP_RESERVE_COUNT * 2; +} + +/* * Number of kernel maps and entries to statically allocate, required * during boot to bootstrap the VM system. */ @@ -401,8 +419,6 @@ vmspace_resident_count(struct vmspace *v #ifdef _KERNEL boolean_t vm_map_check_protection (vm_map_t, vm_offset_t, vm_offset_t, vm_prot_t); struct pmap; -struct globaldata; -void vm_map_entry_reserve_cpu_init(struct globaldata *gd); int vm_map_entry_reserve(int); int vm_map_entry_kreserve(int); void vm_map_entry_release(int);