summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authornathanw <nathanw@NetBSD.org>2003-06-24 18:54:56 +0000
committernathanw <nathanw@NetBSD.org>2003-06-24 18:54:56 +0000
commit39f9ecfa0660a56a106a415d4f4d896644ef44f3 (patch)
tree05f6aedaf1d6cfd5967d2a881464d83a8a49abc8 /lib/libpthread
parent0de24d10b17d18a0b9abb4653ff63771ed7f56a8 (diff)
Oops, reordering the PT_STATE/PT_SWITCHTOUC/PT_SWITCHTO assembly
killed a live value too soon. Fix by using a different register for the PT_STATE immediate.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/arch/powerpc/pthread_switch.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/arch/powerpc/pthread_switch.S b/lib/libpthread/arch/powerpc/pthread_switch.S
index 314a8becc79..91802736310 100644
--- a/lib/libpthread/arch/powerpc/pthread_switch.S
+++ b/lib/libpthread/arch/powerpc/pthread_switch.S
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_switch.S,v 1.5 2003/06/23 22:50:23 nathanw Exp $ */
+/* $NetBSD: pthread_switch.S,v 1.6 2003/06/24 18:54:56 nathanw Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -161,8 +161,8 @@ ENTRY(pthread__upcall_switch)
or. %r7, %r7, %r7
beq 1f
- li %r5, PT_STATE_RECYCLABLE
- stw %r5, PT_STATE(%r3)
+ li %r6, PT_STATE_RECYCLABLE
+ stw %r6, PT_STATE(%r3)
stw %r5, PT_SWITCHTOUC(%r3)
stw %r4, PT_SWITCHTO(%r3)
mr %r3, %r4