Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/i386/pmap.c
Show First 20 Lines • Show All 858 Lines • ▼ Show 20 Lines | |||||
#if defined(PAE) || defined(PAE_TABLES) | #if defined(PAE) || defined(PAE_TABLES) | ||||
static void * | static void * | ||||
pmap_pdpt_allocf(uma_zone_t zone, vm_size_t bytes, int domain, uint8_t *flags, | pmap_pdpt_allocf(uma_zone_t zone, vm_size_t bytes, int domain, uint8_t *flags, | ||||
int wait) | int wait) | ||||
{ | { | ||||
/* Inform UMA that this allocator uses kernel_map/object. */ | /* Inform UMA that this allocator uses kernel_map/object. */ | ||||
*flags = UMA_SLAB_KERNEL; | *flags = UMA_SLAB_KERNEL; | ||||
return ((void *)kmem_alloc_contig_domain(domain, bytes, wait, 0x0ULL, | return ((void *)kmem_alloc_contig_domainset(DOMAINSET_FIXED(domain), | ||||
0xffffffffULL, 1, 0, VM_MEMATTR_DEFAULT)); | bytes, wait, 0x0ULL, 0xffffffffULL, 1, 0, VM_MEMATTR_DEFAULT)); | ||||
} | } | ||||
#endif | #endif | ||||
/* | /* | ||||
* Abuse the pte nodes for unmapped kva to thread a kva freelist through. | * Abuse the pte nodes for unmapped kva to thread a kva freelist through. | ||||
* Requirements: | * Requirements: | ||||
* - Must deal with pages in order to ensure that none of the PG_* bits | * - Must deal with pages in order to ensure that none of the PG_* bits | ||||
* are ever set, PG_V in particular. | * are ever set, PG_V in particular. | ||||
▲ Show 20 Lines • Show All 5,177 Lines • Show Last 20 Lines |