- Timestamp:
- 2006-09-18T11:47:28Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 29b2bbf
- Parents:
- f1d1f5d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/arch/sparc64/include/atomic.h
rf1d1f5d3 r57da95c 52 52 53 53 do { 54 volatile uintptr_t x = (uint64_t) &val->count; 55 56 a = *((uint64_t *) x); 54 a = val->count; 57 55 b = a + i; 58 __asm__ volatile ("casx %0, % 1, %2\n": "+m" (*((uint64_t *)x)), "+r" (a), "+r" (b));56 __asm__ volatile ("casx %0, %2, %1\n" : "+m" (*val), "+r" (b) : "r" (a)); 59 57 } while (a != b); 60 58
Note:
See TracChangeset
for help on using the changeset viewer.