Changeset e7b7be3f in mainline for kernel/arch/ia32/include/atomic.h
- Timestamp:
- 2007-01-22T13:10:08Z (18 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/ia32/include/atomic.h
r62c63fc re7b7be3f 43 43 static inline void atomic_inc(atomic_t *val) { 44 44 #ifdef CONFIG_SMP 45 __asm__volatile ("lock incl %0\n" : "=m" (val->count));45 asm volatile ("lock incl %0\n" : "=m" (val->count)); 46 46 #else 47 __asm__volatile ("incl %0\n" : "=m" (val->count));47 asm volatile ("incl %0\n" : "=m" (val->count)); 48 48 #endif /* CONFIG_SMP */ 49 49 } … … 51 51 static inline void atomic_dec(atomic_t *val) { 52 52 #ifdef CONFIG_SMP 53 __asm__volatile ("lock decl %0\n" : "=m" (val->count));53 asm volatile ("lock decl %0\n" : "=m" (val->count)); 54 54 #else 55 __asm__volatile ("decl %0\n" : "=m" (val->count));55 asm volatile ("decl %0\n" : "=m" (val->count)); 56 56 #endif /* CONFIG_SMP */ 57 57 } … … 61 61 long r = 1; 62 62 63 __asm__volatile (63 asm volatile ( 64 64 "lock xaddl %1, %0\n" 65 65 : "=m" (val->count), "+r" (r) … … 73 73 long r = -1; 74 74 75 __asm__volatile (75 asm volatile ( 76 76 "lock xaddl %1, %0\n" 77 77 : "=m" (val->count), "+r"(r) … … 87 87 uint32_t v; 88 88 89 __asm__volatile (89 asm volatile ( 90 90 "movl $1, %0\n" 91 91 "xchgl %0, %1\n" … … 102 102 103 103 preemption_disable(); 104 __asm__volatile (104 asm volatile ( 105 105 "0:;" 106 106 #ifdef CONFIG_HT
Note:
See TracChangeset
for help on using the changeset viewer.