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

Commit b69359e

Browse files
committed
Spark/Linux patch for locking, from Tom Szybist
1 parent da72b90 commit b69359e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/include/storage/s_lock.h

+4-3
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.12 1997/11/07 21:35:41 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.13 1997/12/09 20:55:33 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -345,11 +345,12 @@ tas_dummy()
345345
#define S_LOCK(lock) do \
346346
{ \
347347
slock_t _res; \
348+
slock_t *tmplock = lock ; \
348349
do \
349350
{ \
350351
__asm__("ldstub [%1], %0" \
351-
: "=&r"(_res) \
352-
: "r"(lock)); \
352+
: "=&r"(_res), "=r"(tmplock) \
353+
: "1"(tmplock)); \
353354
} while (_res != 0); \
354355
} while (0)
355356

0 commit comments

Comments
 (0)