version 1.2.4.1, 2008/05/16 02:22:41 |
version 1.2.4.2, 2009/08/19 18:46:23 |
Line 92 __cpu_simple_lock_try(__cpu_simple_lock_ |
|
Line 92 __cpu_simple_lock_try(__cpu_simple_lock_ |
|
uint8_t val; |
uint8_t val; |
|
|
val = __SIMPLELOCK_LOCKED; |
val = __SIMPLELOCK_LOCKED; |
/* __asm volatile ("xchgb %0,(%2)" : |
__asm volatile ("xchg1 %0=[%1],%2" : |
"=r" (val) |
"=r" (val) |
:"0" (val), "r" (lockp)); */ |
:"r" (lockp), "r" (val) |
__insn_barrier(); |
:"memory"); |
return val == __SIMPLELOCK_UNLOCKED; |
return val == __SIMPLELOCK_UNLOCKED; |
} |
} |
|
|