In pmap_mincore() create a private copy of the pte for use after the pmap

lock is released.
This commit is contained in:
Alan Cox 2004-07-22 02:05:46 +00:00
parent d8aaca4da3
commit e4242deba7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132522

View File

@ -2188,12 +2188,16 @@ int
pmap_mincore(pmap_t pmap, vm_offset_t addr)
{
pmap_t oldpmap;
struct ia64_lpte *pte;
struct ia64_lpte *pte, tpte;
int val = 0;
PMAP_LOCK(pmap);
oldpmap = pmap_install(pmap);
pte = pmap_find_vhpt(addr);
if (pte != NULL) {
tpte = *pte;
pte = &tpte;
}
pmap_install(oldpmap);
PMAP_UNLOCK(pmap);