diff options
author | kib <kib@FreeBSD.org> | 2012-03-19 15:50:14 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-03-19 15:50:14 +0000 |
commit | b100959d0ae00ae4715ee2a6952a5c22a3ec9281 (patch) | |
tree | 694d84de0e1193cb73fceb8e15d13ac3f7ec8453 /sys/amd64 | |
parent | 5a1f537a9e4fefe934684e6e799b5bb1fb8d06c3 (diff) | |
download | FreeBSD-src-b100959d0ae00ae4715ee2a6952a5c22a3ec9281.zip FreeBSD-src-b100959d0ae00ae4715ee2a6952a5c22a3ec9281.tar.gz |
Re-apply r233122 erronously reverted in r233168.
Submitted by: jhb
Pointy hat to: kib
MFC after: 2 weeks
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 6831b62..e2c3540 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2942,8 +2942,7 @@ pmap_protect(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, vm_prot_t prot) pdp_entry_t *pdpe; pd_entry_t ptpaddr, *pde; pt_entry_t *pte; - int anychanged; - boolean_t pv_lists_locked; + boolean_t anychanged, pv_lists_locked; if ((prot & VM_PROT_READ) == VM_PROT_NONE) { pmap_remove(pmap, sva, eva); @@ -2956,7 +2955,7 @@ pmap_protect(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, vm_prot_t prot) pv_lists_locked = FALSE; resume: - anychanged = 0; + anychanged = FALSE; PMAP_LOCK(pmap); for (; sva < eva; sva = va_next) { @@ -3004,7 +3003,7 @@ resume: * invalidated by pmap_protect_pde(). */ if (pmap_protect_pde(pmap, pde, sva, prot)) - anychanged = 1; + anychanged = TRUE; continue; } else { if (!pv_lists_locked) { @@ -3058,7 +3057,7 @@ retry: if (obits & PG_G) pmap_invalidate_page(pmap, sva); else - anychanged = 1; + anychanged = TRUE; } } } |