Skip to contentSkip to conversation

Fix typo in x86_64 __build_write_lock_const assembly

PATCH New Ben Collins 1 participant 1 message Dec 23, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix typo in x86_64 __build_write_lock_const assembly

Based on __build_read_lock_const, this looked like a bug.

include/asm-x86_64/rwlock.h +1 -1
index 8a78a4a..9942cc3 100644
@@ -64,7 +64,7 @@
 		     ::"a" (rw) : "memory")
 
 #define __build_write_lock_const(rw, helper) \
-	asm volatile(LOCK "subl $" RW_LOCK_BIAS_STR ",(%0)\n\t" \
+	asm volatile(LOCK "subl $" RW_LOCK_BIAS_STR ",%0\n\t" \
 		     "jnz 2f\n" \
 		     "1:\n" \
 		    LOCK_SECTION_START("") \
Signature · 3 lines
   Ben Collins <[email protected]>
   Developer
   Ubuntu Linux