Commit b69359e2 authored by Bruce Momjian's avatar Bruce Momjian

Spark/Linux patch for locking, from Tom Szybist

parent da72b903
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.12 1997/11/07 21:35:41 momjian Exp $ * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.13 1997/12/09 20:55:33 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -345,11 +345,12 @@ tas_dummy() ...@@ -345,11 +345,12 @@ tas_dummy()
#define S_LOCK(lock) do \ #define S_LOCK(lock) do \
{ \ { \
slock_t _res; \ slock_t _res; \
slock_t *tmplock = lock ; \
do \ do \
{ \ { \
__asm__("ldstub [%1], %0" \ __asm__("ldstub [%1], %0" \
: "=&r"(_res) \ : "=&r"(_res), "=r"(tmplock) \
: "r"(lock)); \ : "1"(tmplock)); \
} while (_res != 0); \ } while (_res != 0); \
} while (0) } while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment