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:
Alan Cox 2004-06-16 03:11:24 +00:00
parent 3010536674
commit 82d8e6f5a0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130553

View file

@ -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);
}