Changeset 5336643 in mainline


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)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/atomic.h

    r3527a93 r5336643  
    6464                "       beq %0, %4, 1b\n"       /* if the atomic operation failed, try again */
    6565                "       nop\n"
    66                 : "=&r" (tmp), "=m" (val->count), "=&r" (v)
     66                : "=&r" (tmp), "+m" (val->count), "=&r" (v)
    6767                : "i" (i), "i" (0)
    6868                );
  • 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.