Changeset bda24ee7 in mainline for uspace/lib/libc/arch/mips32/include/atomic.h
- Timestamp:
- 2009-01-13T20:26:00Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6cd3e8a
- Parents:
- 42ec919
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/mips32/include/atomic.h
r42ec919 rbda24ee7 60 60 "1:\n" 61 61 " ll %0, %1\n" 62 " add iu %0, %0, %3\n" /* same as addi, but never traps on overflow */62 " addu %0, %0, %3\n" /* same as add, but never traps on overflow */ 63 63 " move %2, %0\n" 64 64 " sc %0, %1\n" 65 65 " beq %0, %4, 1b\n" /* if the atomic operation failed, try again */ 66 66 /* nop */ /* nop is inserted automatically by compiler */ 67 " nop\n" 67 68 : "=&r" (tmp), "+m" (val->count), "=&r" (v) 68 : " i" (i), "i" (0)69 : "r" (i), "i" (0) 69 70 ); 70 71
Note:
See TracChangeset
for help on using the changeset viewer.