summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-17 01:00:51 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-17 01:00:51 +0200
commite1c051153cdc08f23e95724f45f6d999bedeb3e3 (patch)
tree3b094faabe702d8a598aedefb295748522e4b989
parentca11788a906e126b85bdfaf78fbc58821b0cea46 (diff)
Fix typo
* machine/lock.h (_simple_lock_xchg_): Add missing parenthesis.
-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 b989927b..12d97021 100644
--- a/i386/i386/lock.h
+++ b/i386/i386/lock.h
@@ -47,7 +47,7 @@
({ int _old_val_; \
asm volatile("xchgl %0, %2" \
: "=r" (_old_val_) \
- : "0" (new_val), "m" (*(lock) : "memory") \
+ : "0" (new_val), "m" (*(lock)) : "memory") \
); \
_old_val_; \
})