Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/broadcom Fix arm non-MULTIPROCESSOR build for RPI2



details:   https://anonhg.NetBSD.org/src/rev/d0126544ba05
branches:  trunk
changeset: 993174:d0126544ba05
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Aug 28 14:57:03 2018 +0000

description:
Fix arm non-MULTIPROCESSOR build for RPI2

diffstat:

 sys/arch/arm/broadcom/bcm283x_platform.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r da69161635ca -r d0126544ba05 sys/arch/arm/broadcom/bcm283x_platform.c
--- a/sys/arch/arm/broadcom/bcm283x_platform.c  Tue Aug 28 14:45:33 2018 +0000
+++ b/sys/arch/arm/broadcom/bcm283x_platform.c  Tue Aug 28 14:57:03 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm283x_platform.c,v 1.15 2018/08/26 18:15:49 ryo Exp $        */
+/*     $NetBSD: bcm283x_platform.c,v 1.16 2018/08/28 14:57:03 skrll Exp $      */
 
 /*-
  * Copyright (c) 2017 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm283x_platform.c,v 1.15 2018/08/26 18:15:49 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm283x_platform.c,v 1.16 2018/08/28 14:57:03 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_bcm283x.h"
@@ -799,6 +799,7 @@
                /* Wake up AP in case firmware has placed it in WFE state */
                __asm __volatile("sev" ::: "memory");
 
+#ifdef MULTIPROCESSOR
                /* Wait for APs to start */
                for (int loop = 0; loop < 16; loop++) {
                        membar_consumer();
@@ -806,6 +807,7 @@
                                break;
                        gtmr_delay(10000);
                }
+#endif
        }
 #endif
 



Home | Main Index | Thread Index | Old Index