aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_kern.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2013-02-18 01:02:48 +0000
committerAlan Cox <alc@FreeBSD.org>2013-02-18 01:02:48 +0000
commitfc23011bc33e844e820af50b3a63b71f582ecc01 (patch)
treed5b8faf2506eddd4321894bc7b4cd7f04c10df40 /sys/vm/vm_kern.c
parent7e46ff5f4cb541537722f87bb20a57bc41493d54 (diff)
downloadsrc-fc23011bc33e844e820af50b3a63b71f582ecc01.tar.gz
src-fc23011bc33e844e820af50b3a63b71f582ecc01.zip
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
Notes
Notes: svn path=/head/; revision=246926
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 4d789cec2087..ad9aa0dfa7e0 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,