diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2021-07-12 09:32:38 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2021-07-12 09:32:38 +0000 |
commit | fa4e313acab5f974cb10f08b401aeae782c6cccc (patch) | |
tree | 0a681488626862f4cffcd05c50f101411bfa3a98 | |
parent | 223deb39706d55db7629bd927b952c1529288f7d (diff) |
Remember to set CPUF_RUNNING on secondary CPUs.
-rw-r--r-- | sys/arch/loongson/loongson/machdep.c | 5 | ||||
-rw-r--r-- | sys/arch/octeon/octeon/machdep.c | 5 |
2 files changed, 8 insertions, 2 deletions
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); |