summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2009-02-13 23:31:29 +0000
committermiod <miod@openbsd.org>2009-02-13 23:31:29 +0000
commit6084eb59963e96d3c3a89563faccfa1dc1633cf1 (patch)
tree700e3e4c9a30fc7973b39e09a2d8beb71e27f684
parentAllow IPIs on the secondary processors later in the bootstrap process, when (diff)
downloadwireguard-openbsd-6084eb59963e96d3c3a89563faccfa1dc1633cf1.tar.xz
wireguard-openbsd-6084eb59963e96d3c3a89563faccfa1dc1633cf1.zip
Release the secondary processor initialization interlock a bit later,
after the currently running processor has advertized itself as ready.
-rw-r--r--sys/arch/mvme88k/mvme88k/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c
index d483aa4ebb3..4277ce115db 100644
--- a/sys/arch/mvme88k/mvme88k/machdep.c
+++ b/sys/arch/mvme88k/mvme88k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.218 2009/02/13 23:26:51 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.219 2009/02/13 23:31:29 miod Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -759,13 +759,13 @@ secondary_main()
cpu_configuration_print(0);
ncpus++;
- __cpu_simple_unlock(&cpu_boot_mutex);
-
microuptime(&ci->ci_schedstate.spc_runtime);
ci->ci_curproc = NULL;
ci->ci_randseed = random();
SET(ci->ci_flags, CIF_ALIVE);
+ __cpu_simple_unlock(&cpu_boot_mutex);
+
set_psr(get_psr() & ~PSR_IND);
spl0();