summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>2000-06-30 02:37:22 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>2000-06-30 02:37:22 +0000
commit104b000648ddc7e200111e41575524a1ad965cf3 (patch)
tree00643c2e3cfdb7f10c601df3aa737761e1bdafde /sys/arch
parentaf9ce558c89778cbf5373813fab0b05d9b14f91a (diff)
Problem and fix found on OpenBSD, fix confirmed with NetBSD.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/powerpc/powerpc/locore.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/powerpc/powerpc/locore.S b/sys/arch/powerpc/powerpc/locore.S
index b044a011d4c..f733b69cadf 100644
--- a/sys/arch/powerpc/powerpc/locore.S
+++ b/sys/arch/powerpc/powerpc/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.12 2000/06/15 03:16:39 rahnds Exp $ */
+/* $OpenBSD: locore.S,v 1.13 2000/06/30 02:37:21 rahnds Exp $ */
/* $NetBSD: locore.S,v 1.2 1996/10/16 19:33:09 ws Exp $ */
/*
@@ -203,6 +203,10 @@ _ENTRY(_C_LABEL(switchexit))
* already in r3).
*/
bl _C_LABEL(exit2)
+
+ /* Fall through to cpu_switch to actually select another proc */
+ li 3,0 /* indicate exited process */
+
/* Fall through to cpu_switch to actually select another proc */