aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/amd64/mem.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2008-06-20 05:22:09 +0000
committerAlan Cox <alc@FreeBSD.org>2008-06-20 05:22:09 +0000
commit293ab7c941267a47c03cf610f1d891177c8ae07b (patch)
tree588b605f30e268cea80d6d6553410cfc09d47d5e /sys/amd64/amd64/mem.c
parentf2dc0faad005f11a43f79171d07fe98c31e75311 (diff)
downloadsrc-293ab7c941267a47c03cf610f1d891177c8ae07b.tar.gz
src-293ab7c941267a47c03cf610f1d891177c8ae07b.zip
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).
Notes
Notes: svn path=/head/; revision=179886
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 00f5a8e1a20b..af119dcbdc01 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)