summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/mem.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-06-20 05:22:09 +0000
committeralc <alc@FreeBSD.org>2008-06-20 05:22:09 +0000
commit2fc7871f11f777726ba33446fb7c230152d69133 (patch)
tree588b605f30e268cea80d6d6553410cfc09d47d5e /sys/amd64/amd64/mem.c
parent9e4d306f6fe863ceecc097ac5554fee53ab1d7e5 (diff)
downloadFreeBSD-src-2fc7871f11f777726ba33446fb7c230152d69133.zip
FreeBSD-src-2fc7871f11f777726ba33446fb7c230152d69133.tar.gz
Make preparations for increasing the size of the kernel virtual
address space on the amd64 architecture. The amd64 architecture requires kernel code and global variables to reside in the highest 2GB of the 64-bit virtual address space. Thus, KERNBASE cannot change. However, KERNBASE is sometimes used as the start of the kernel virtual address space. Henceforth, VM_MIN_KERNEL_ADDRESS should be used instead. Since KERNBASE and VM_MIN_KERNEL_ADDRESS are still the same address, there should be no visible effect from this change (yet).
Diffstat (limited to 'sys/amd64/amd64/mem.c')
-rw-r--r--sys/amd64/amd64/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c
index 00f5a8e..af119dc 100644
--- a/sys/amd64/amd64/mem.c
+++ b/sys/amd64/amd64/mem.c
@@ -119,7 +119,7 @@ kmemphys:
addr = trunc_page(v);
eaddr = round_page(v + c);
- if (addr < (vm_offset_t)KERNBASE)
+ if (addr < VM_MIN_KERNEL_ADDRESS)
return (EFAULT);
for (; addr < eaddr; addr += PAGE_SIZE)
if (pmap_extract(kernel_pmap, addr) == 0)
OpenPOWER on IntegriCloud