summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_kern.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2013-02-18 01:02:48 +0000
committeralc <alc@FreeBSD.org>2013-02-18 01:02:48 +0000
commit88b6705ed66e8e65890f043013d6a9781f8a6ddc (patch)
treed5b8faf2506eddd4321894bc7b4cd7f04c10df40 /sys/vm/vm_kern.c
parent4ec0049878981227b783e1722f6f3fc61897bbc1 (diff)
downloadFreeBSD-src-88b6705ed66e8e65890f043013d6a9781f8a6ddc.zip
FreeBSD-src-88b6705ed66e8e65890f043013d6a9781f8a6ddc.tar.gz
On arm, like sparc64, the end of the kernel map varies from one type of
machine to another. Therefore, VM_MAX_KERNEL_ADDRESS can't be a constant. Instead, #define it to be a variable, vm_max_kernel_address, just like we do on sparc64. Reviewed by: kib Tested by: ian
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r--sys/vm/vm_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index 4d789ce..ad9aa0d 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -98,7 +98,7 @@ SYSCTL_ULONG(_vm, OID_AUTO, min_kernel_address, CTLFLAG_RD,
NULL, VM_MIN_KERNEL_ADDRESS, "Min kernel address");
SYSCTL_ULONG(_vm, OID_AUTO, max_kernel_address, CTLFLAG_RD,
-#ifdef __sparc64__
+#if defined(__arm__) || defined(__sparc64__)
&vm_max_kernel_address, 0,
#else
NULL, VM_MAX_KERNEL_ADDRESS,
OpenPOWER on IntegriCloud