Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/rpi Do invalidate the cache as RPI2 build wi...



details:   https://anonhg.NetBSD.org/src/rev/bc60a39377ce
branches:  trunk
changeset: 336740:bc60a39377ce
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Mar 15 22:54:03 2015 +0000

description:
Do invalidate the cache as RPI2 build with Clang can't fetch the memory
config otherwise.

diffstat:

 sys/arch/evbarm/rpi/rpi_machdep.c |  12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diffs (33 lines):

diff -r f6f15c06f482 -r bc60a39377ce sys/arch/evbarm/rpi/rpi_machdep.c
--- a/sys/arch/evbarm/rpi/rpi_machdep.c Sun Mar 15 18:58:09 2015 +0000
+++ b/sys/arch/evbarm/rpi/rpi_machdep.c Sun Mar 15 22:54:03 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpi_machdep.c,v 1.58 2015/03/04 17:02:17 skrll Exp $   */
+/*     $NetBSD: rpi_machdep.c,v 1.59 2015/03/15 22:54:03 joerg Exp $   */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.58 2015/03/04 17:02:17 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.59 2015/03/15 22:54:03 joerg Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_bcm283x.h"
@@ -431,13 +431,7 @@
 
        bcm2835_mbox_read(iot, ioh, BCMMBOX_CHANARM2VC, &res);
 
-       /*
-        * No need to invalid the cache as the memory has never been referenced
-        * by the ARM.
-        *
-        * cpu_dcache_inv_range((vaddr_t)&vb, sizeof(vb));
-        *
-        */
+       cpu_dcache_inv_range((vaddr_t)&vb, sizeof(vb));
 
        if (!vcprop_buffer_success_p(&vb.vb_hdr)) {
                bootconfig.dramblocks = 1;



Home | Main Index | Thread Index | Old Index