summaryrefslogtreecommitdiff
path: root/sys/arch/aviion
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-10-13 12:55:22 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-10-13 12:55:22 +0000
commit8e3ee8c94364b7716eaa0761134212d4ce549218 (patch)
treeb469f2ebd6ac7776ec066e3bb74aefacd939a628 /sys/arch/aviion
parent20407c2e8748eea83bab72d483cc4b9598573e96 (diff)
Enable interrupts in secondary processors before invoking cpu_switchto(),
rather the expecting it to do this for us.
Diffstat (limited to 'sys/arch/aviion')
-rw-r--r--sys/arch/aviion/aviion/machdep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/aviion/aviion/machdep.c b/sys/arch/aviion/aviion/machdep.c
index 8464a564ee1..4e7077db979 100644
--- a/sys/arch/aviion/aviion/machdep.c
+++ b/sys/arch/aviion/aviion/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.11 2007/10/10 15:53:51 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.12 2007/10/13 12:55:20 miod Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -613,6 +613,9 @@ secondary_main()
microuptime(&ci->ci_schedstate.spc_runtime);
ci->ci_curproc = NULL;
+ set_psr(get_psr() & ~PSR_IND);
+ spl0();
+
SCHED_LOCK(s);
cpu_switchto(NULL, sched_chooseproc());
}