Changeset View
Changeset View
Standalone View
Standalone View
head/sys/i386/i386/vm_machdep.c
Show First 20 Lines • Show All 644 Lines • ▼ Show 20 Lines | sf_buf_invalidate(struct sf_buf *sf) | ||||
vm_page_t m = sf->m; | vm_page_t m = sf->m; | ||||
/* | /* | ||||
* Use pmap_qenter to update the pte for | * Use pmap_qenter to update the pte for | ||||
* existing mapping, in particular, the PAT | * existing mapping, in particular, the PAT | ||||
* settings are recalculated. | * settings are recalculated. | ||||
*/ | */ | ||||
pmap_qenter(sf->kva, &m, 1); | pmap_qenter(sf->kva, &m, 1); | ||||
pmap_invalidate_cache_range(sf->kva, sf->kva + PAGE_SIZE, FALSE); | pmap_invalidate_cache_range(sf->kva, sf->kva + PAGE_SIZE); | ||||
} | } | ||||
/* | /* | ||||
* Invalidate the cache lines that may belong to the page, if | * Invalidate the cache lines that may belong to the page, if | ||||
* (possibly old) mapping of the page by sf buffer exists. Returns | * (possibly old) mapping of the page by sf buffer exists. Returns | ||||
* TRUE when mapping was found and cache invalidated. | * TRUE when mapping was found and cache invalidated. | ||||
*/ | */ | ||||
boolean_t | boolean_t | ||||
Show All 40 Lines |