Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a292ed2

Browse files
committed
Lock fix from Tom Ivar Helbekkmo .
1 parent 460b20a commit a292ed2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/include/storage/s_lock.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.41 1998/07/19 04:16:59 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.42 1998/07/19 09:44:36 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -128,9 +128,9 @@ tas(volatile slock_t *lock)
128128
{
129129
register slock_t _res = 1;
130130

131-
__asm__("ldstub [%1], %0" \
132-
: "=r"(_res), "=m"(*lock) \
133-
: "0"(lock));
131+
__asm__("ldstub [%2], %0" \
132+
: "=r" (_res), "=m" (*lock) \
133+
: "r" (lock));
134134
return (int) _res;
135135
}
136136
#endif /* sparc */

0 commit comments

Comments
 (0)