Module Name:    src
Committed By:   matt
Date:           Sun May 31 22:15:52 UTC 2015

Modified Files:
        src/sys/arch/evbarm/tegra: platform.h

Log Message:
Increase kernel VA space for kernels that don't use direct mapped memory.
(512MB -> 1.25GB)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbarm/tegra/platform.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/tegra/platform.h
diff -u src/sys/arch/evbarm/tegra/platform.h:1.1 src/sys/arch/evbarm/tegra/platform.h:1.2
--- src/sys/arch/evbarm/tegra/platform.h:1.1	Sun Mar 29 10:41:59 2015
+++ src/sys/arch/evbarm/tegra/platform.h	Sun May 31 22:15:52 2015
@@ -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 <[email protected]>
@@ -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)
 

Reply via email to