In pmap_mincore() create a private copy of the pte for use after the pmap
lock is released.
This commit is contained in:
parent
d8aaca4da3
commit
e4242deba7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132522
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user