summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-07-28 04:13:49 +0000
committeralc <alc@FreeBSD.org>2008-07-28 04:13:49 +0000
commit4dbcd0e70fa651c0d0a0c20c215c4a254c5e2ba5 (patch)
tree7ad9af786b3836cf90b8d6af92020918e44b95a1
parent8c160a5c01fbc3ae9c2a5cd1623350ba7224b96e (diff)
downloadFreeBSD-src-4dbcd0e70fa651c0d0a0c20c215c4a254c5e2ba5.zip
FreeBSD-src-4dbcd0e70fa651c0d0a0c20c215c4a254c5e2ba5.tar.gz
Don't allow pmap_change_attr() to be applied to the recursive mapping.
-rw-r--r--sys/i386/i386/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 9736d29..5f25b75 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -4433,7 +4433,7 @@ pmap_change_attr(vm_offset_t va, vm_size_t size, int mode)
size = roundup(offset + size, PAGE_SIZE);
/* Only supported on kernel virtual addresses. */
- if (base <= VM_MAXUSER_ADDRESS)
+ if (base <= VM_MIN_KERNEL_ADDRESS)
return (EINVAL);
/* 4MB pages and pages that aren't mapped aren't supported. */
OpenPOWER on IntegriCloud