summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2018-06-01 23:10:59 +0000
committerkettenis <kettenis@openbsd.org>2018-06-01 23:10:59 +0000
commitd25fa759011184051574a6c056769dc57d3fc36c (patch)
treeba3e727be2971439476c8f8be16fc041ee60cdd5
parentRockchip RK3288/3328/3399 pre-divide the clock. Take this into account when (diff)
downloadwireguard-openbsd-d25fa759011184051574a6c056769dc57d3fc36c.tar.xz
wireguard-openbsd-d25fa759011184051574a6c056769dc57d3fc36c.zip
With option WITNESS we need to have a bit more KVA available during early
bootstrap so allocate page tables for the first GB. ok deraadt@
-rw-r--r--sys/arch/arm64/arm64/pmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm64/arm64/pmap.c b/sys/arch/arm64/arm64/pmap.c
index 9f944176392..4641e0f0305 100644
--- a/sys/arch/arm64/arm64/pmap.c
+++ b/sys/arch/arm64/arm64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.53 2018/05/23 06:45:20 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.54 2018/06/01 23:10:59 kettenis Exp $ */
/*
* Copyright (c) 2008-2009,2014-2016 Dale Rahn <drahn@dalerahn.com>
*
@@ -1009,10 +1009,10 @@ pmap_kpted_alloc(void)
}
/*
- * In pmap_bootstrap() we allocate the page tables for the first 512 MB
+ * In pmap_bootstrap() we allocate the page tables for the first GB
* of the kernel address space.
*/
-vaddr_t pmap_maxkvaddr = VM_MIN_KERNEL_ADDRESS + 512 * 1024 * 1024;
+vaddr_t pmap_maxkvaddr = VM_MIN_KERNEL_ADDRESS + 1024 * 1024 * 1024;
vaddr_t
pmap_growkernel(vaddr_t maxkvaddr)