diff options
author | peter <peter@FreeBSD.org> | 2004-08-24 00:17:52 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-08-24 00:17:52 +0000 |
commit | dc3c5ad492c16cdbdf39a1fe60961e0543760173 (patch) | |
tree | 8b769c8f3b35cc7f4dc4513d533eed778135a81b | |
parent | 878672b652111d9a8df706976942ed062adad67e (diff) | |
download | FreeBSD-src-dc3c5ad492c16cdbdf39a1fe60961e0543760173.zip FreeBSD-src-dc3c5ad492c16cdbdf39a1fe60961e0543760173.tar.gz |
It is now an error to call pmap_unuse_pt without the paddr of the pde
that contained the pte.
-rw-r--r-- | sys/amd64/amd64/pmap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 3f09fdd..f3feccd 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -1048,9 +1048,7 @@ pmap_unuse_pt(pmap_t pmap, vm_offset_t va, pd_entry_t ptepde) if (va >= VM_MAXUSER_ADDRESS) return 0; -/* XXX this should be an error, all cases should be caught now */ - if (ptepde == 0) - ptepde = *pmap_pde(pmap, va); + KASSERT(ptepde != 0, ("pmap_unuse_pt: ptepde != 0")); mpte = PHYS_TO_VM_PAGE(ptepde & PG_FRAME); return pmap_unwire_pte_hold(pmap, va, mpte); } |