diff options
author | alc <alc@FreeBSD.org> | 2008-07-28 04:13:49 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2008-07-28 04:13:49 +0000 |
commit | 4dbcd0e70fa651c0d0a0c20c215c4a254c5e2ba5 (patch) | |
tree | 7ad9af786b3836cf90b8d6af92020918e44b95a1 /sys/i386 | |
parent | 8c160a5c01fbc3ae9c2a5cd1623350ba7224b96e (diff) | |
download | FreeBSD-src-4dbcd0e70fa651c0d0a0c20c215c4a254c5e2ba5.zip FreeBSD-src-4dbcd0e70fa651c0d0a0c20c215c4a254c5e2ba5.tar.gz |
Don't allow pmap_change_attr() to be applied to the recursive mapping.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/pmap.c | 2 |
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. */ |