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 Use the first1g for kernel memory, not...



details:   https://anonhg.NetBSD.org/src/rev/22916ce5a91f
branches:  trunk
changeset: 338588:22916ce5a91f
user:      matt <matt%NetBSD.org@localhost>
date:      Sat May 30 23:17:37 2015 +0000

description:
Use the first1g for kernel memory, not the 2nd one.

diffstat:

 sys/arch/evbarm/tegra/tegra_machdep.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 88660689171e -r 22916ce5a91f sys/arch/evbarm/tegra/tegra_machdep.c
--- a/sys/arch/evbarm/tegra/tegra_machdep.c     Sat May 30 22:40:38 2015 +0000
+++ b/sys/arch/evbarm/tegra/tegra_machdep.c     Sat May 30 23:17:37 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_machdep.c,v 1.16 2015/05/18 19:32:48 jmcneill Exp $ */
+/* $NetBSD: tegra_machdep.c,v 1.17 2015/05/30 23:17:37 matt Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.16 2015/05/18 19:32:48 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.17 2015/05/30 23:17:37 matt Exp $");
 
 #include "opt_tegra.h"
 #include "opt_machdep.h"
@@ -143,7 +143,7 @@
 #undef _S
 
 #ifdef PMAP_NEED_ALLOC_POOLPAGE
-static struct boot_physmem bp_highgig = {
+static struct boot_physmem bp_lowgig = {
        .bp_start = TEGRA_EXTMEM_BASE / NBPG,
        .bp_pages = (KERNEL_VM_BASE - KERNEL_BASE) / NBPG,
        .bp_freelist = VM_FREELIST_ISADMA,
@@ -311,11 +311,10 @@
        evbarm_device_register = tegra_device_register;
 
 #ifdef PMAP_NEED_ALLOC_POOLPAGE
-       if (atop(ram_size) > bp_highgig.bp_pages) {
-               bp_highgig.bp_start += atop(ram_size) - bp_highgig.bp_pages;
-               arm_poolpage_vmfreelist = bp_highgig.bp_freelist;
+       if (atop(ram_size) > bp_lowgig.bp_pages) {
+               arm_poolpage_vmfreelist = bp_lowgig.bp_freelist;
                return initarm_common(KERNEL_VM_BASE, KERNEL_VM_SIZE,
-                   &bp_highgig, 1);
+                   &bp_lowgig, 1);
        }
 #endif
 



Home | Main Index | Thread Index | Old Index