vm_init.c (1542) | vm_init.c (1549) |
---|---|
1 |
|
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 --- 65 unchanged lines hidden (view full) --- 74 75/* 76 * vm_init initializes the virtual memory system. 77 * This is done only by the first cpu up. 78 * 79 * The start and end address of physical memory is passed in. 80 */ 81 | 2/* 3 * Copyright (c) 1991, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * The Mach Operating System project at Carnegie-Mellon University. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 65 unchanged lines hidden (view full) --- 75 76/* 77 * vm_init initializes the virtual memory system. 78 * This is done only by the first cpu up. 79 * 80 * The start and end address of physical memory is passed in. 81 */ 82 |
82void vm_mem_init() | 83void 84vm_mem_init() |
83{ 84 extern vm_offset_t avail_start, avail_end; 85 extern vm_offset_t virtual_avail, virtual_end; 86 87 /* 88 * Initializes resident memory structures. 89 * From here on, all physical memory is accounted for, 90 * and we use only virtual addresses. 91 */ | 85{ 86 extern vm_offset_t avail_start, avail_end; 87 extern vm_offset_t virtual_avail, virtual_end; 88 89 /* 90 * Initializes resident memory structures. 91 * From here on, all physical memory is accounted for, 92 * and we use only virtual addresses. 93 */ |
92 vm_set_page_size(); 93 vm_page_startup(&avail_start, &avail_end); | |
94 | 94 |
95 vm_set_page_size(); 96 virtual_avail = vm_page_startup(avail_start, avail_end, virtual_avail); |
|
95 /* 96 * Initialize other VM packages 97 */ 98 vm_object_init(virtual_end - VM_MIN_KERNEL_ADDRESS); 99 vm_map_startup(); 100 kmem_init(virtual_avail, virtual_end); 101 pmap_init(avail_start, avail_end); 102 vm_pager_init(); 103} | 97 /* 98 * Initialize other VM packages 99 */ 100 vm_object_init(virtual_end - VM_MIN_KERNEL_ADDRESS); 101 vm_map_startup(); 102 kmem_init(virtual_avail, virtual_end); 103 pmap_init(avail_start, avail_end); 104 vm_pager_init(); 105} |