Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/odroid Reorder code so bootconfig is initial...



details:   https://anonhg.NetBSD.org/src/rev/14689581a9b3
branches:  trunk
changeset: 797930:14689581a9b3
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Aug 04 11:32:27 2014 +0000

description:
Reorder code so bootconfig is initialized at one place

diffstat:

 sys/arch/evbarm/odroid/odroid_machdep.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 79140e593475 -r 14689581a9b3 sys/arch/evbarm/odroid/odroid_machdep.c
--- a/sys/arch/evbarm/odroid/odroid_machdep.c   Mon Aug 04 11:30:35 2014 +0000
+++ b/sys/arch/evbarm/odroid/odroid_machdep.c   Mon Aug 04 11:32:27 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: odroid_machdep.c,v 1.22 2014/08/04 11:30:10 reinoud Exp $ */
+/*     $NetBSD: odroid_machdep.c,v 1.23 2014/08/04 11:32:27 reinoud Exp $ */
 
 /*
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.22 2014/08/04 11:30:10 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.23 2014/08/04 11:32:27 reinoud Exp $");
 
 #include "opt_evbarm_boardtype.h"
 #include "opt_exynos.h"
@@ -357,10 +357,6 @@
        parse_mi_bootargs(mi_bootargs);
 #endif
 
-       /* Fake bootconfig structure for the benefit of pmap.c. */
-       bootconfig.dramblocks = 1;
-       bootconfig.dram[0].address = rambase;
-
        /*
         * Determine physical memory by looking at the PoP package. This PoP
         * package ID seems to be only available on Exynos4
@@ -382,6 +378,10 @@
                }
        }
 #endif
+
+       /* Fake bootconfig structure for the benefit of pmap.c. */
+       bootconfig.dramblocks = 1;
+       bootconfig.dram[0].address = rambase;
        bootconfig.dram[0].pages = ram_size / PAGE_SIZE;
 
 #ifdef __HAVE_MM_MD_DIRECT_MAPPED_PHYS



Home | Main Index | Thread Index | Old Index