diff options
author | alc <alc@FreeBSD.org> | 2008-07-28 05:41:35 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2008-07-28 05:41:35 +0000 |
commit | 88e89bb2e1055b6b23e5ed7d929ac8138bf91cfe (patch) | |
tree | 1cd69fcb08717163d47ab94a1a1626bfd7658c26 | |
parent | 93ecf09bb705a27a049f0406b4a3aff1b8b2e41d (diff) | |
download | FreeBSD-src-88e89bb2e1055b6b23e5ed7d929ac8138bf91cfe.zip FreeBSD-src-88e89bb2e1055b6b23e5ed7d929ac8138bf91cfe.tar.gz |
Correct an off-by-one error in the previous change to pmap_change_attr().
Change the nearby comment to mention the recursive map.
-rw-r--r-- | sys/i386/i386/pmap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 5f25b75..7403d37 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -4432,8 +4432,10 @@ pmap_change_attr(vm_offset_t va, vm_size_t size, int mode) offset = va & PAGE_MASK; size = roundup(offset + size, PAGE_SIZE); - /* Only supported on kernel virtual addresses. */ - if (base <= VM_MIN_KERNEL_ADDRESS) + /* + * Only supported on kernel virtual addresses above the recursive map. + */ + if (base < VM_MIN_KERNEL_ADDRESS) return (EINVAL); /* 4MB pages and pages that aren't mapped aren't supported. */ |