Re: error in Sparc64 rwlock.S

Andrew Morton
2003-11-19T22:29:35Z

leif <leif@gci.net> wrote:
>
> Now there's a different problem...
>
> Error: local label '"100" (instance number 1 of a fb label)'
> is not defined

Ah, sorry. This incremental patch should fix that up.

--- 25/arch/sparc64/lib/rwlock.S~lockmeter-sparc64-fix-fix Wed Nov 19 14:29:11 2003
+++ 25-akpm/arch/sparc64/lib/rwlock.S Wed Nov 19 14:29:18 2003
@@ -90,13 +90,15 @@ __write_trylock_fail:
__read_trylock: /* %o0 = lock_ptr */
ldsw [%o0], %g5
brlz,pn %g5, 100f
- add %g5, 1, %g7
+ add %g5, 1, %g7
cas [%o0], %g5, %g7
cmp %g5, %g7
bne,pn %icc, __read_trylock
membar #StoreLoad | #StoreStore
retl
- mov 1, %o0
+ mov 1, %o0
+100: retl
+ mov 0, %o0

rwlock_impl_end:

_