Changeset e7b7be3f in mainline for kernel/arch/sparc64/include/atomic.h
- Timestamp:
- 2007-01-22T13:10:08Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0f3fc9b
- Parents:
- 62c63fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/atomic.h
r62c63fc re7b7be3f 58 58 a = *((uint64_t *) x); 59 59 b = a + i; 60 __asm__volatile ("casx %0, %2, %1\n" : "+m" (*((uint64_t *)x)), "+r" (b) : "r" (a));60 asm volatile ("casx %0, %2, %1\n" : "+m" (*((uint64_t *)x)), "+r" (b) : "r" (a)); 61 61 } while (a != b); 62 62 … … 99 99 volatile uintptr_t x = (uint64_t) &val->count; 100 100 101 __asm__volatile ("casx %0, %2, %1\n" : "+m" (*((uint64_t *) x)), "+r" (v) : "r" (0));101 asm volatile ("casx %0, %2, %1\n" : "+m" (*((uint64_t *) x)), "+r" (v) : "r" (0)); 102 102 103 103 return v; … … 111 111 volatile uintptr_t x = (uint64_t) &val->count; 112 112 113 __asm__volatile (113 asm volatile ( 114 114 "0:\n" 115 115 "casx %0, %3, %1\n"
Note:
See TracChangeset
for help on using the changeset viewer.