diff options
author | vangyzen <vangyzen@FreeBSD.org> | 2017-05-19 00:33:48 +0000 |
---|---|---|
committer | vangyzen <vangyzen@FreeBSD.org> | 2017-05-19 00:33:48 +0000 |
commit | 61298fa8ab84667fb2a73c6dd1275799f6be7071 (patch) | |
tree | 2ba9b96a4e34b110774fb91cd3c15dd4aea4e67b /sys/amd64 | |
parent | 36e493fadc47cf70ed3ceef4004b3e22425681fd (diff) | |
download | FreeBSD-src-61298fa8ab84667fb2a73c6dd1275799f6be7071.zip FreeBSD-src-61298fa8ab84667fb2a73c6dd1275799f6be7071.tar.gz |
MFC r318354 (by cem)
Correct page frame mask constant used in pmap_change_attr_locked
This was introduced in r290156. It's present in 11.0, but not any 10.x
release unless someone decided to MFC it.
It affects ordinary pages right above the DMAP limit, which is effectively
system memory rounded up to a 1 GB (3rd level superpage) boundary (or up to
a minimum of 4 GB, on small systems).
Sponsored by: Dell EMC
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 612421e..45d4c1e 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -6727,7 +6727,7 @@ pmap_change_attr_locked(vm_offset_t va, vm_size_t size, int mode) changed = TRUE; } if (tmpva >= VM_MIN_KERNEL_ADDRESS && - (*pte & PG_PS_FRAME) < dmaplimit) { + (*pte & PG_FRAME) < dmaplimit) { if (pa_start == pa_end) { /* Start physical address run. */ pa_start = *pte & PG_FRAME; |