Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi Fix A83T AP startup



details:   https://anonhg.NetBSD.org/src/rev/19c70a6d0d57
branches:  trunk
changeset: 449317:19c70a6d0d57
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Mar 03 17:00:22 2019 +0000

description:
Fix A83T AP startup

diffstat:

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

diffs (27 lines):

diff -r a65718a9ac60 -r 19c70a6d0d57 sys/arch/arm/sunxi/sunxi_mc_smp.c
--- a/sys/arch/arm/sunxi/sunxi_mc_smp.c Sun Mar 03 16:29:00 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_mc_smp.c Sun Mar 03 17:00:22 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_mc_smp.c,v 1.3 2019/01/03 14:44:21 jmcneill Exp $ */
+/* $NetBSD: sunxi_mc_smp.c,v 1.4 2019/03/03 17:00:22 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: sunxi_mc_smp.c,v 1.3 2019/01/03 14:44:21 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_mc_smp.c,v 1.4 2019/03/03 17:00:22 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -156,6 +156,8 @@
        if (soc == MC_SOC_A83T) {
                if (cpu == 0)
                        val &= ~__BIT(4);
+               else
+                       val &= ~__BIT(cpu);
                val &= ~__BIT(0);       /* cluster power gate */
        } else {
                val &= ~__BIT(cpu);



Home | Main Index | Thread Index | Old Index