We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 460b20a commit a292ed2Copy full SHA for a292ed2
src/include/storage/s_lock.h
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.41 1998/07/19 04:16:59 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.42 1998/07/19 09:44:36 momjian Exp $
11
12
*-------------------------------------------------------------------------
13
*/
@@ -128,9 +128,9 @@ tas(volatile slock_t *lock)
128
{
129
register slock_t _res = 1;
130
131
- __asm__("ldstub [%1], %0" \
132
- : "=r"(_res), "=m"(*lock) \
133
- : "0"(lock));
+ __asm__("ldstub [%2], %0" \
+ : "=r" (_res), "=m" (*lock) \
+ : "r" (lock));
134
return (int) _res;
135
}
136
#endif /* sparc */
0 commit comments