Correct an off-by-one error in the previous change to pmap_change_attr().

Change the nearby comment to mention the recursive map.
This commit is contained in:
Alan Cox 2008-07-28 05:41:35 +00:00
parent b0c139d336
commit e79980e1f7

View File

@ -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. */