lkml.org 
[lkml]   [2010]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: x86-32: clean up rwsem inline asm statements
    Date
    Linus Torvalds <torvalds@linux-foundation.org> writes:

    > @@ -249,7 +249,7 @@ static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem)
    > {
    > int tmp = delta;
    >
    > - asm volatile(LOCK_PREFIX "xadd %0,%1"
    > + asm volatile(LOCK_PREFIX "xadd%z0 %0,%1"
    > : "+r" (tmp), "+m" (sem->count)
    > : : "memory");

    I think %z0 should be %z1 here.

    Andreas.

    --
    Andreas Schwab, schwab@linux-m68k.org
    GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
    "And now for something completely different."


    \
     
     \ /
      Last update: 2010-01-13 01:47    [W:0.022 / U:0.472 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site