summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i386/i386/lock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/lock.h b/i386/i386/lock.h
index 38a66c8..b989927 100644
--- a/i386/i386/lock.h
+++ b/i386/i386/lock.h
@@ -44,7 +44,7 @@
*/
#define _simple_lock_xchg_(lock, new_val) \
- ({ register int _old_val_; \
+ ({ int _old_val_; \
asm volatile("xchgl %0, %2" \
: "=r" (_old_val_) \
: "0" (new_val), "m" (*(lock) : "memory") \