lkml.org 
[lkml]   [2003]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: error in Sparc64 rwlock.S
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:

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.184 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site