Increase kernel VA space for kernels that don't use direct mapped memory.

(512MB -> 1.25GB)
This commit is contained in:
matt 2015-05-31 22:15:52 +00:00
parent 9f3fcd35ec
commit d3558c0177
1 changed files with 6 additions and 1 deletions

View File

@ -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 <jmcneill@invisible.ca>
@ -31,8 +31,13 @@
#include <arm/nvidia/tegra_reg.h>
#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)