Correct an error in the implementation of pmap_is_prefaultable(). When I
introduced this function in revision 1.441, I inverted one of the comparisons.
This commit is contained in:
parent
3010536674
commit
82d8e6f5a0
@ -2575,7 +2575,7 @@ pmap_is_prefaultable(pmap_t pmap, vm_offset_t addr)
|
||||
if (pde == NULL || (*pde & PG_V) == 0)
|
||||
return (FALSE);
|
||||
pte = vtopte(addr);
|
||||
if ((*pte & PG_V) == 0)
|
||||
if (*pte & PG_V)
|
||||
return (FALSE);
|
||||
return (TRUE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user