Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed pthread_spin_lock on sparc32/64 (bug 16882)
	[BZ #16882]
	* nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
	(pthread_spin_lock): Branch out of spin loop to proper location.
	* nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
	(pthread_spin_lock): Likewise.
  • Loading branch information
Guo Yixuan authored and David S. Miller committed Jun 3, 2014
1 parent f9d2d03 commit b42eca7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
@@ -1,3 +1,11 @@
2014-06-03 Guo Yixuan <culu.gyx@gmail.com>

[BZ #16882]
* nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
(pthread_spin_lock): Branch out of spin loop to proper location.
* nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
(pthread_spin_lock): Likewise.

2014-06-03 Andreas Schwab <schwab@suse.de>

[BZ #15946]
Expand Down
4 changes: 2 additions & 2 deletions nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
Expand Up @@ -19,11 +19,11 @@

.text
ENTRY(pthread_spin_lock)
ldstub [%o0], %g1
1: ldstub [%o0], %g1
orcc %g1, 0x0, %g0
bne,a 2f
ldub [%o0], %g1
1: retl
retl
mov 0, %o0
2: orcc %g1, 0x0, %g0
bne,a 2b
Expand Down
4 changes: 2 additions & 2 deletions nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
Expand Up @@ -19,10 +19,10 @@

.text
ENTRY(pthread_spin_lock)
ldstub [%o0], %g1
1: ldstub [%o0], %g1
brnz,pn %g1, 2f
membar #StoreLoad | #StoreStore
1: retl
retl
mov 0, %o0
2: ldub [%o0], %g1
brnz,pt %g1, 2b
Expand Down

0 comments on commit b42eca7

Please sign in to comment.