vm_init.c (10358) | vm_init.c (10653) |
---|---|
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.7 1995/07/13 08:48:24 davidg Exp $ | 64 * $Id: vm_init.c,v 1.8 1995/08/28 09:19:23 julian Exp $ |
65 */ 66 67/* 68 * Initialize the Virtual Memory subsystem. 69 */ 70 71#include <sys/param.h> 72#include <sys/kernel.h> 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 | 65 */ 66 67/* 68 * Initialize the Virtual Memory subsystem. 69 */ 70 71#include <sys/param.h> 72#include <sys/kernel.h> 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)); | 84static void vm_mem_init __P((void *)); |
85SYSINIT(vm_mem, SI_SUB_VM, SI_ORDER_FIRST, vm_mem_init, NULL) 86 87/* 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 94/* ARGSUSED*/ 95static void | 85SYSINIT(vm_mem, SI_SUB_VM, SI_ORDER_FIRST, vm_mem_init, NULL) 86 87/* 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 94/* ARGSUSED*/ 95static void |
96vm_mem_init( udata) 97caddr_t udata; /* not used*/ | 96vm_mem_init(udata) 97 void *udata; /* not used*/ |
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} | 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} |