vm_init.c (210475) | vm_init.c (210545) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * The Mach Operating System project at Carnegie-Mellon University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 49 unchanged lines hidden (view full) --- 58 * rights to redistribute these changes. 59 */ 60 61/* 62 * Initialize the Virtual Memory subsystem. 63 */ 64 65#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * The Mach Operating System project at Carnegie-Mellon University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 49 unchanged lines hidden (view full) --- 58 * rights to redistribute these changes. 59 */ 60 61/* 62 * Initialize the Virtual Memory subsystem. 63 */ 64 65#include <sys/cdefs.h> |
66__FBSDID("$FreeBSD: head/sys/vm/vm_init.c 210475 2010-07-25 17:43:38Z alc $"); | 66__FBSDID("$FreeBSD: head/sys/vm/vm_init.c 210545 2010-07-27 17:31:03Z alc $"); |
67 68#include <sys/param.h> 69#include <sys/kernel.h> 70#include <sys/lock.h> 71#include <sys/mutex.h> 72#include <sys/proc.h> 73#include <sys/sysctl.h> 74#include <sys/systm.h> 75#include <sys/selinfo.h> | 67 68#include <sys/param.h> 69#include <sys/kernel.h> 70#include <sys/lock.h> 71#include <sys/mutex.h> 72#include <sys/proc.h> 73#include <sys/sysctl.h> 74#include <sys/systm.h> 75#include <sys/selinfo.h> |
76#include <sys/imgact.h> | |
77#include <sys/pipe.h> 78#include <sys/bio.h> 79#include <sys/buf.h> 80 81#include <vm/vm.h> 82#include <vm/vm_param.h> 83#include <vm/vm_kern.h> 84#include <vm/vm_object.h> --- 105 unchanged lines hidden (view full) --- 190 (long)nbuf * BKVASIZE + (long)nswbuf * MAXPHYS, TRUE); 191 buffer_map = kmem_suballoc(clean_map, &kmi->buffer_sva, 192 &kmi->buffer_eva, (long)nbuf * BKVASIZE, FALSE); 193 buffer_map->system_map = 1; 194 pager_map = kmem_suballoc(clean_map, &kmi->pager_sva, &kmi->pager_eva, 195 (long)nswbuf * MAXPHYS, FALSE); 196 pager_map->system_map = 1; 197 exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, | 76#include <sys/pipe.h> 77#include <sys/bio.h> 78#include <sys/buf.h> 79 80#include <vm/vm.h> 81#include <vm/vm_param.h> 82#include <vm/vm_kern.h> 83#include <vm/vm_object.h> --- 105 unchanged lines hidden (view full) --- 189 (long)nbuf * BKVASIZE + (long)nswbuf * MAXPHYS, TRUE); 190 buffer_map = kmem_suballoc(clean_map, &kmi->buffer_sva, 191 &kmi->buffer_eva, (long)nbuf * BKVASIZE, FALSE); 192 buffer_map->system_map = 1; 193 pager_map = kmem_suballoc(clean_map, &kmi->pager_sva, &kmi->pager_eva, 194 (long)nswbuf * MAXPHYS, FALSE); 195 pager_map->system_map = 1; 196 exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, |
198 exec_map_entries * round_page(PATH_MAX + ARG_MAX + MAXSHELLCMDLEN), 199 FALSE); | 197 exec_map_entries * round_page(PATH_MAX + ARG_MAX), FALSE); |
200 pipe_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, maxpipekva, 201 FALSE); 202 203 /* 204 * XXX: Mbuf system machine-specific initializations should 205 * go here, if anywhere. 206 */ 207 208 /* 209 * Initialize the callouts we just allocated. 210 */ 211 kern_timeout_callwheel_init(); 212} 213 | 198 pipe_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, maxpipekva, 199 FALSE); 200 201 /* 202 * XXX: Mbuf system machine-specific initializations should 203 * go here, if anywhere. 204 */ 205 206 /* 207 * Initialize the callouts we just allocated. 208 */ 209 kern_timeout_callwheel_init(); 210} 211 |