summaryrefslogtreecommitdiff
path: root/sys/arch/mvmeppc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-11-16 17:08:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-11-16 17:08:10 +0000
commita41dec8cc998e207616f4f86405c56cb3c2d2840 (patch)
tree2d2f7d5636b56ec824012f4b0136e9ec08d0b52d /sys/arch/mvmeppc
parent7ad6f0f560779f4f0de178a97b31b8943ede3185 (diff)
Set p_stat to SONPROC in cpu_switch() after picking a proc to run.
Diffstat (limited to 'sys/arch/mvmeppc')
-rw-r--r--sys/arch/mvmeppc/mvmeppc/genassym.cf5
-rw-r--r--sys/arch/mvmeppc/mvmeppc/locore.S5
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/mvmeppc/mvmeppc/genassym.cf b/sys/arch/mvmeppc/mvmeppc/genassym.cf
index e70bf0f2e95..ed2353e86b4 100644
--- a/sys/arch/mvmeppc/mvmeppc/genassym.cf
+++ b/sys/arch/mvmeppc/mvmeppc/genassym.cf
@@ -1,4 +1,4 @@
-# $OpenBSD: genassym.cf,v 1.7 2004/06/24 22:35:56 drahn Exp $
+# $OpenBSD: genassym.cf,v 1.8 2004/11/16 17:08:09 miod Exp $
#
# Copyright (c) 1982, 1990 The Regents of the University of California.
# All rights reserved.
@@ -70,3 +70,6 @@ struct proc
member p_forw
member p_back
member p_addr
+member p_stat
+
+export SONPROC
diff --git a/sys/arch/mvmeppc/mvmeppc/locore.S b/sys/arch/mvmeppc/mvmeppc/locore.S
index f18f41cb978..c80326189e9 100644
--- a/sys/arch/mvmeppc/mvmeppc/locore.S
+++ b/sys/arch/mvmeppc/mvmeppc/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.7 2004/06/24 22:35:56 drahn Exp $ */
+/* $OpenBSD: locore.S,v 1.8 2004/11/16 17:08:09 miod Exp $ */
/* $NetBSD: locore.S,v 1.2 1996/10/16 19:33:09 ws Exp $ */
/*
@@ -228,6 +228,9 @@ _C_LABEL(sw1):
lis 4,_C_LABEL(curproc)@ha
stw 31,_C_LABEL(curproc)@l(4) /* record new process */
+ li %r3,SONPROC
+ stb %r3,P_STAT(%r31)
+
mfmsr 3
ori 3,3,PSL_EE /* Now we can interrupt again */
mtmsr 3