diff options
Diffstat (limited to 'i386/i386/lock.h')
-rw-r--r-- | i386/i386/lock.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/i386/i386/lock.h b/i386/i386/lock.h index 8efa0ca0..29214538 100644 --- a/i386/i386/lock.h +++ b/i386/i386/lock.h @@ -43,15 +43,15 @@ * The code here depends on the GNU C compiler. */ -#define _simple_lock_xchg_(lock, new_val) \ - ({ int _old_val_; \ - asm volatile("xchgl %0, %2" \ - : "=r" (_old_val_) \ - : "0" (new_val), "m" (*(lock)) : "memory" \ - ); \ - _old_val_; \ - }) - +/*#define _simple_lock_xchg_(lock, new_val) \ + * ({ int _old_val_; \ + * asm volatile("xchgl %0, %2" \ + * : "=r" (_old_val_) \ + * : "0" (new_val), "m" (*(lock)) : "memory" \ + * ); \ + * _old_val_; \ + * }) +*/ #define simple_lock_init(l) \ ((l)->lock_data = 0) |