Changeset 7f1c620 in mainline for arch/sparc64/include/atomic.h
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/include/atomic.h
r991779c5 r7f1c620 50 50 static inline long atomic_add(atomic_t *val, int i) 51 51 { 52 __u64a, b;53 volatile __u64 x = (__u64) &val->count;52 uint64_t a, b; 53 volatile uint64_t x = (uint64_t) &val->count; 54 54 55 55 __asm__ volatile ( … … 61 61 "bne 0b\n" /* The operation failed and must be attempted again if a != b. */ 62 62 "nop\n" 63 : "=m" (*(( __u64*)x)), "=r" (a), "=r" (b)63 : "=m" (*((uint64_t *)x)), "=r" (a), "=r" (b) 64 64 : "r" (i) 65 65 );
Note:
See TracChangeset
for help on using the changeset viewer.