summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-07-24 16:29:44 +0000
committerkib <kib@FreeBSD.org>2014-07-24 16:29:44 +0000
commitd7d6313cf44fa12148b5cee3cb0542287af7a37f (patch)
tree671bf425a15fe4f80c0c080b0d8ce7545ed6f149 /sys/amd64
parentbc8d80ff4e8a4a3106923968524f11648f134483 (diff)
downloadFreeBSD-src-d7d6313cf44fa12148b5cee3cb0542287af7a37f.zip
FreeBSD-src-d7d6313cf44fa12148b5cee3cb0542287af7a37f.tar.gz
MFC r267213 (by alc):
Add a page size field to struct vm_page. Approved by: alc
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 7d5418f..caefdea 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -4437,9 +4437,7 @@ pmap_enter_object(pmap_t pmap, vm_offset_t start, vm_offset_t end,
while (m != NULL && (diff = m->pindex - m_start->pindex) < psize) {
va = start + ptoa(diff);
if ((va & PDRMASK) == 0 && va + NBPDR <= end &&
- (VM_PAGE_TO_PHYS(m) & PDRMASK) == 0 &&
- pmap_ps_enabled(pmap) &&
- vm_reserv_level_iffullpop(m) == 0 &&
+ m->psind == 1 && pmap_ps_enabled(pmap) &&
pmap_enter_pde(pmap, va, m, prot, &lock))
m = &m[NBPDR / PAGE_SIZE - 1];
else
OpenPOWER on IntegriCloud