1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- ../sal/osl/unx/interlck.c.orig Mon Jul 22 17:51:34 2002
+++ ../sal/osl/unx/interlck.c Mon Jul 22 18:03:42 2002
@@ -81,10 +81,10 @@
__asm__ __volatile__ (
"movl $1, %0\n\t"
"lock\n\t"
- "xadd %0, %2\n\t"
+ "xadd %0, %1\n\t"
"incl %0"
- : "=a" (nCount), "=m" (*pCount)
- : "m" (*pCount)
+ : "=&a" (nCount), "+m" (*pCount)
+ :
: "memory");
}
@@ -95,10 +95,10 @@
__asm__ __volatile__ (
"movl $-1, %0\n\t"
"lock\n\t"
- "xadd %0, %2\n\t"
+ "xadd %0, %1\n\t"
"decl %0"
- : "=a" (nCount), "=m" (*pCount)
- : "m" (*pCount)
+ : "=&a" (nCount), "+m" (*pCount)
+ :
: "memory");
}
|