Commit d663f1c8 authored by Bruce Momjian's avatar Bruce Momjian

Sparc lock fix for Linux/netbsd.

parent 4b74ca2d
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.8 1997/09/30 16:21:42 momjian Exp $ * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.9 1997/10/02 18:32:58 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -351,7 +351,7 @@ tas_dummy() ...@@ -351,7 +351,7 @@ tas_dummy()
__asm__("ldstub [%1], %0" \ __asm__("ldstub [%1], %0" \
: "=&r"(_res) \ : "=&r"(_res) \
: "r"(lock)); \ : "r"(lock)); \
} while (!_res != 0); \ } while (_res != 0); \
} while (0) } while (0)
#define S_UNLOCK(lock) (*(lock) = 0) #define S_UNLOCK(lock) (*(lock) = 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