From: visa Date: Mon, 12 Jul 2021 09:32:37 +0000 (+0000) Subject: Remember to set CPUF_RUNNING on secondary CPUs. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5c29d1617c00f45f511b9b073a058d20eb04e052;p=openbsd Remember to set CPUF_RUNNING on secondary CPUs. --- diff --git a/sys/arch/loongson/loongson/machdep.c b/sys/arch/loongson/loongson/machdep.c index 47a85ab13e3..073fd407364 100644 --- a/sys/arch/loongson/loongson/machdep.c +++ b/sys/arch/loongson/loongson/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.97 2021/07/12 09:29:18 visa Exp $ */ +/* $OpenBSD: machdep.c,v 1.98 2021/07/12 09:32:37 visa Exp $ */ /* * Copyright (c) 2009, 2010, 2014 Miodrag Vallat. @@ -1304,6 +1304,9 @@ hw_cpu_hatch(struct cpu_info *ci) mips64_ipi_init(); + ci->ci_flags |= CPUF_RUNNING; + membar_sync(); + ncpus++; cpuset_add(&cpus_running, ci); diff --git a/sys/arch/octeon/octeon/machdep.c b/sys/arch/octeon/octeon/machdep.c index daca85fc0fb..efe28175601 100644 --- a/sys/arch/octeon/octeon/machdep.c +++ b/sys/arch/octeon/octeon/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.132 2021/07/12 09:29:18 visa Exp $ */ +/* $OpenBSD: machdep.c,v 1.133 2021/07/12 09:32:37 visa Exp $ */ /* * Copyright (c) 2009, 2010 Miodrag Vallat. @@ -1334,6 +1334,9 @@ hw_cpu_hatch(struct cpu_info *ci) octeon_intr_init(); mips64_ipi_init(); + ci->ci_flags |= CPUF_RUNNING; + membar_sync(); + ncpus++; cpuset_add(&cpus_running, ci);