vm_init.c (9507) | vm_init.c (10358) |
---|---|
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 --- 47 unchanged lines hidden (view full) --- 56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 57 * School of Computer Science 58 * Carnegie Mellon University 59 * Pittsburgh PA 15213-3890 60 * 61 * any improvements or extensions that they make and grant Carnegie the 62 * rights to redistribute these changes. 63 * | 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 --- 47 unchanged lines hidden (view full) --- 56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 57 * School of Computer Science 58 * Carnegie Mellon University 59 * Pittsburgh PA 15213-3890 60 * 61 * any improvements or extensions that they make and grant Carnegie the 62 * rights to redistribute these changes. 63 * |
64 * $Id: vm_init.c,v 1.6 1995/03/16 18:17:11 bde Exp $ | 64 * $Id: vm_init.c,v 1.7 1995/07/13 08:48:24 davidg Exp $ |
65 */ 66 67/* 68 * Initialize the Virtual Memory subsystem. 69 */ 70 71#include <sys/param.h> | 65 */ 66 67/* 68 * Initialize the Virtual Memory subsystem. 69 */ 70 71#include <sys/param.h> |
72#include <sys/kernel.h> |
|
72#include <sys/systm.h> 73 74#include <vm/vm.h> 75#include <vm/vm_page.h> 76#include <vm/vm_kern.h> 77#include <vm/vm_pager.h> 78 79/* | 73#include <sys/systm.h> 74 75#include <vm/vm.h> 76#include <vm/vm_page.h> 77#include <vm/vm_kern.h> 78#include <vm/vm_pager.h> 79 80/* |
81 * System initialization 82 */ 83 84static void vm_mem_init __P((caddr_t)); 85SYSINIT(vm_mem, SI_SUB_VM, SI_ORDER_FIRST, vm_mem_init, NULL) 86 87/* |
|
80 * vm_init initializes the virtual memory system. 81 * This is done only by the first cpu up. 82 * 83 * The start and end address of physical memory is passed in. 84 */ 85 | 88 * vm_init initializes the virtual memory system. 89 * This is done only by the first cpu up. 90 * 91 * The start and end address of physical memory is passed in. 92 */ 93 |
86void 87vm_mem_init() | 94/* ARGSUSED*/ 95static void 96vm_mem_init( udata) 97caddr_t udata; /* not used*/ |
88{ 89 /* 90 * Initializes resident memory structures. From here on, all physical 91 * memory is accounted for, and we use only virtual addresses. 92 */ 93 94 vm_set_page_size(); 95 virtual_avail = vm_page_startup(avail_start, avail_end, virtual_avail); 96 /* 97 * Initialize other VM packages 98 */ 99 vm_object_init(virtual_end - VM_MIN_KERNEL_ADDRESS); 100 vm_map_startup(); 101 kmem_init(virtual_avail, virtual_end); 102 pmap_init(avail_start, avail_end); 103 vm_pager_init(); 104} | 98{ 99 /* 100 * Initializes resident memory structures. From here on, all physical 101 * memory is accounted for, and we use only virtual addresses. 102 */ 103 104 vm_set_page_size(); 105 virtual_avail = vm_page_startup(avail_start, avail_end, virtual_avail); 106 /* 107 * Initialize other VM packages 108 */ 109 vm_object_init(virtual_end - VM_MIN_KERNEL_ADDRESS); 110 vm_map_startup(); 111 kmem_init(virtual_avail, virtual_end); 112 pmap_init(avail_start, avail_end); 113 vm_pager_init(); 114} |