Changeset View
Changeset View
Standalone View
Standalone View
vm/vm_init.c
Show First 20 Lines • Show All 271 Lines • ▼ Show 20 Lines | #endif | ||||
* entries to avoid deadlock. The exec map is also used by some image | * entries to avoid deadlock. The exec map is also used by some image | ||||
* activators, so we leave a fixed number of pages for their use. | * activators, so we leave a fixed number of pages for their use. | ||||
*/ | */ | ||||
#ifdef __LP64__ | #ifdef __LP64__ | ||||
exec_map_entries = 8 * mp_ncpus; | exec_map_entries = 8 * mp_ncpus; | ||||
#else | #else | ||||
exec_map_entries = 2 * mp_ncpus + 4; | exec_map_entries = 2 * mp_ncpus + 4; | ||||
#endif | #endif | ||||
exec_map_entry_size = round_page(PATH_MAX + ARG_MAX); | exec_map_entry_size = round_page(PATH_MAX + argmax); | ||||
exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, | exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, | ||||
exec_map_entries * exec_map_entry_size + 64 * PAGE_SIZE, FALSE); | exec_map_entries * exec_map_entry_size + 64 * PAGE_SIZE, FALSE); | ||||
pipe_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, maxpipekva, | pipe_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, maxpipekva, | ||||
FALSE); | FALSE); | ||||
} | } |