From d3558c0177ad4b85f8a8d57488d4f01462afc60b Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 31 May 2015 22:15:52 +0000 Subject: [PATCH] Increase kernel VA space for kernels that don't use direct mapped memory. (512MB -> 1.25GB) --- sys/arch/evbarm/tegra/platform.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/arch/evbarm/tegra/platform.h b/sys/arch/evbarm/tegra/platform.h index d6d898213349..67313e1ac948 100644 --- a/sys/arch/evbarm/tegra/platform.h +++ b/sys/arch/evbarm/tegra/platform.h @@ -1,4 +1,4 @@ -/* $NetBSD: platform.h,v 1.1 2015/03/29 10:41:59 jmcneill Exp $ */ +/* $NetBSD: platform.h,v 1.2 2015/05/31 22:15:52 matt Exp $ */ /*- * Copyright (c) 2015 Jared D. McNeill @@ -31,8 +31,13 @@ #include +#ifdef __HAVE_MM_MD_DIRECT_MAPPED_PHYS #define KERNEL_VM_BASE 0xc0000000 #define KERNEL_VM_SIZE 0x20000000 /* 0x20000000 = 512MB */ +#else +#define KERNEL_VM_BASE 0x90000000 +#define KERNEL_VM_SIZE 0x50000000 /* 0x50000000 = 1.25GB */ +#endif #define CONSADDR_VA (CONSADDR - TEGRA_APB_BASE + TEGRA_APB_VBASE)