mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 5 additions and 1 deletions
|
|
@ -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 a new issue