summaryrefslogtreecommitdiffstats
path: root/sys/alpha/alpha/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/alpha/alpha/trap.c')
-rw-r--r--sys/alpha/alpha/trap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/alpha/alpha/trap.c b/sys/alpha/alpha/trap.c
index ebfd140..3e773d3 100644
--- a/sys/alpha/alpha/trap.c
+++ b/sys/alpha/alpha/trap.c
@@ -121,9 +121,11 @@ userret(p, pc, oticks, have_giant)
* indicated by our priority.
*/
s = splstatclock();
+ mtx_enter(&sched_lock, MTX_SPIN);
setrunqueue(p);
p->p_stats->p_ru.ru_nivcsw++;
mi_switch();
+ mtx_exit(&sched_lock, MTX_SPIN);
splx(s);
while ((sig = CURSIG(p)) != 0) {
if (have_giant == 0) {
OpenPOWER on IntegriCloud