Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_page.c
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | |||||
SYSINIT(vm_page, SI_SUB_VM, SI_ORDER_SECOND, vm_page_init, NULL); | SYSINIT(vm_page, SI_SUB_VM, SI_ORDER_SECOND, vm_page_init, NULL); | ||||
static void | static void | ||||
vm_page_init(void *dummy) | vm_page_init(void *dummy) | ||||
{ | { | ||||
fakepg_zone = uma_zcreate("fakepg", sizeof(struct vm_page), NULL, NULL, | fakepg_zone = uma_zcreate("fakepg", sizeof(struct vm_page), NULL, NULL, | ||||
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); | NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); | ||||
bogus_page = vm_page_alloc(NULL, 0, VM_ALLOC_NOOBJ | | bogus_page = vm_page_alloc_noobj(VM_ALLOC_NORMAL | VM_ALLOC_WIRED); | ||||
VM_ALLOC_NORMAL | VM_ALLOC_WIRED); | |||||
} | } | ||||
/* | /* | ||||
* The cache page zone is initialized later since we need to be able to allocate | * The cache page zone is initialized later since we need to be able to allocate | ||||
* pages before UMA is fully initialized. | * pages before UMA is fully initialized. | ||||
*/ | */ | ||||
static void | static void | ||||
vm_page_init_cache_zones(void *dummy __unused) | vm_page_init_cache_zones(void *dummy __unused) | ||||
▲ Show 20 Lines • Show All 5,369 Lines • Show Last 20 Lines |