Ignore:
Timestamp:
2008-06-16T21:28:37Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ad2e39b
Parents:
3527a93
Message:

The first argument to atomic_add() is read-write. (mips32)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/arch/mips32/include/atomic.h

    r3527a93 r5336643  
    6565                "       beq %0, %4, 1b\n"       /* if the atomic operation failed, try again */
    6666                /*      nop     */              /* nop is inserted automatically by compiler */
    67                 : "=&r" (tmp), "=m" (val->count), "=&r" (v)
     67                : "=&r" (tmp), "+m" (val->count), "=&r" (v)
    6868                : "i" (i), "i" (0)
    6969                );
Note: See TracChangeset for help on using the changeset viewer.