Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/tegra Increase kernel VA space for kernels t...



details:   https://anonhg.NetBSD.org/src/rev/6c5861c6d6ba
branches:  trunk
changeset: 808747:6c5861c6d6ba
user:      matt <matt%NetBSD.org@localhost>
date:      Sun May 31 22:15:52 2015 +0000

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

diffstat:

 sys/arch/evbarm/tegra/platform.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 934653e3f910 -r 6c5861c6d6ba sys/arch/evbarm/tegra/platform.h
--- a/sys/arch/evbarm/tegra/platform.h  Sun May 31 22:09:38 2015 +0000
+++ b/sys/arch/evbarm/tegra/platform.h  Sun May 31 22:15:52 2015 +0000
@@ -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@localhost>
@@ -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)
 



Home | Main Index | Thread Index | Old Index