Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/marvell Change physical_end to segment_end t...



details:   https://anonhg.NetBSD.org/src/rev/01a8b49774c3
branches:  trunk
changeset: 783232:01a8b49774c3
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Dec 12 00:03:11 2012 +0000

description:
Change physical_end to segment_end to avoid shadowing a global.

diffstat:

 sys/arch/evbarm/marvell/marvell_machdep.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (49 lines):

diff -r ffef12bc217c -r 01a8b49774c3 sys/arch/evbarm/marvell/marvell_machdep.c
--- a/sys/arch/evbarm/marvell/marvell_machdep.c Wed Dec 12 00:01:28 2012 +0000
+++ b/sys/arch/evbarm/marvell/marvell_machdep.c Wed Dec 12 00:03:11 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: marvell_machdep.c,v 1.20 2012/12/02 18:20:20 msaitoh Exp $ */
+/*     $NetBSD: marvell_machdep.c,v 1.21 2012/12/12 00:03:11 matt Exp $ */
 /*
  * Copyright (c) 2007, 2008, 2010 KIYOHARA Takashi
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: marvell_machdep.c,v 1.20 2012/12/02 18:20:20 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: marvell_machdep.c,v 1.21 2012/12/12 00:03:11 matt Exp $");
 
 #include "opt_evbarm_boardtype.h"
 #include "opt_ddb.h"
@@ -349,8 +349,8 @@
 #endif
 
        bootconfig.dramblocks = 0;
-       paddr_t physical_end;
-       physical_end = physmem = 0;
+       paddr_t segment_end;
+       segment_end = physmem = 0;
        for (cs = MARVELL_TAG_SDRAM_CS0; cs <= MARVELL_TAG_SDRAM_CS3; cs++) {
                mvsoc_target(cs, &target, &attr, &base, &size);
                if (size == 0)
@@ -359,16 +359,16 @@
                bootconfig.dram[bootconfig.dramblocks].address = base;
                bootconfig.dram[bootconfig.dramblocks].pages = size / PAGE_SIZE;
 
-               if (base != physical_end)
+               if (base != segment_end)
                        panic("memory hole not support");
 
-               physical_end += size;
+               segment_end += size;
                physmem += size / PAGE_SIZE;
 
                bootconfig.dramblocks++;
        }
 
-       arm32_bootmem_init(0, physical_end, (uintptr_t) KERNEL_BASE_phys);
+       arm32_bootmem_init(0, segment_end, (uintptr_t) KERNEL_BASE_phys);
        arm32_kernel_vm_init(KERNEL_VM_BASE, ARM_VECTORS_HIGH, 0,
            marvell_devmap, false);
 



Home | Main Index | Thread Index | Old Index