Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_map.c
Show First 20 Lines • Show All 1,852 Lines • ▼ Show 20 Lines | |||||
* | * | ||||
* Preload the specified map's pmap with mappings to the specified | * Preload the specified map's pmap with mappings to the specified | ||||
* object's memory-resident pages. No further physical pages are | * object's memory-resident pages. No further physical pages are | ||||
* allocated, and no further virtual pages are retrieved from secondary | * allocated, and no further virtual pages are retrieved from secondary | ||||
* storage. If the specified flags include MAP_PREFAULT_PARTIAL, then a | * storage. If the specified flags include MAP_PREFAULT_PARTIAL, then a | ||||
* limited number of page mappings are created at the low-end of the | * limited number of page mappings are created at the low-end of the | ||||
* specified address range. (For this purpose, a superpage mapping | * specified address range. (For this purpose, a superpage mapping | ||||
* counts as one page mapping.) Otherwise, all resident pages within | * counts as one page mapping.) Otherwise, all resident pages within | ||||
* the specified address range are mapped. Because these mappings are | * the specified address range are mapped. | ||||
* being created speculatively, cached pages are not reactivated and | |||||
* mapped. | |||||
*/ | */ | ||||
static void | static void | ||||
vm_map_pmap_enter(vm_map_t map, vm_offset_t addr, vm_prot_t prot, | vm_map_pmap_enter(vm_map_t map, vm_offset_t addr, vm_prot_t prot, | ||||
vm_object_t object, vm_pindex_t pindex, vm_size_t size, int flags) | vm_object_t object, vm_pindex_t pindex, vm_size_t size, int flags) | ||||
{ | { | ||||
vm_offset_t start; | vm_offset_t start; | ||||
vm_page_t p, p_start; | vm_page_t p, p_start; | ||||
vm_pindex_t mask, psize, threshold, tmpidx; | vm_pindex_t mask, psize, threshold, tmpidx; | ||||
▲ Show 20 Lines • Show All 2,455 Lines • Show Last 20 Lines |