about summary refs log tree commit diff
path: root/db2/mutex/x86.gcc
diff options
context:
space:
mode:
Diffstat (limited to 'db2/mutex/x86.gcc')
-rw-r--r--db2/mutex/x86.gcc4
1 files changed, 2 insertions, 2 deletions
diff --git a/db2/mutex/x86.gcc b/db2/mutex/x86.gcc
index 886a6811a2..566b9c4433 100644
--- a/db2/mutex/x86.gcc
+++ b/db2/mutex/x86.gcc
@@ -1,12 +1,12 @@
 /*
- * @(#)x86.gcc	10.2 (Sleepycat) 6/21/97
+ * @(#)x86.gcc	10.3 (Sleepycat) 8/27/97
  *
  * For gcc/x86, 0 is clear, 1 is set.
  */
 #define	TSL_SET(tsl) ({							\
 	register tsl_t *__l = (tsl);					\
 	int __r;							\
-	asm volatile("movl $1,%%eax; xchgb %1,%%al; xorl $1,%%eax"	\
+	asm volatile("movl $1,%%eax; lock; xchgb %1,%%al; xorl $1,%%eax"\
 	    : "=&a" (__r), "=m" (*__l)					\
 	    : "1" (*__l)						\
 	    );								\