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 Before spinning up the secondary cpus fl...



details:   https://anonhg.NetBSD.org/src/rev/e7d62fb888fc
branches:  trunk
changeset: 338400:e7d62fb888fc
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu May 21 20:50:57 2015 +0000

description:
Before spinning up the secondary cpus flush the dcache otherwise the
dcache invalidate in cortex_mpstart makes bad things happen.

I have no idea why.

RPI2 boots again

diffstat:

 sys/arch/evbarm/rpi/rpi_machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 46f577c99de6 -r e7d62fb888fc sys/arch/evbarm/rpi/rpi_machdep.c
--- a/sys/arch/evbarm/rpi/rpi_machdep.c Thu May 21 19:53:11 2015 +0000
+++ b/sys/arch/evbarm/rpi/rpi_machdep.c Thu May 21 20:50:57 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpi_machdep.c,v 1.63 2015/05/21 10:35:08 jmcneill Exp $        */
+/*     $NetBSD: rpi_machdep.c,v 1.64 2015/05/21 20:50:57 skrll 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.63 2015/05/21 10:35:08 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.64 2015/05/21 20:50:57 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_bcm283x.h"
@@ -503,6 +503,8 @@
 
        extern void cortex_mpstart(void);
 
+       cpu_dcache_wbinv_all();
+
        for (size_t i = 1; i < arm_cpu_max; i++) {
                bus_space_tag_t iot = &bcm2835_bs_tag;
                bus_space_handle_t ioh = BCM2836_ARM_LOCAL_VBASE;



Home | Main Index | Thread Index | Old Index