OSDN Git Service

Thank you for testing and reporting this. It is my fault of course,
authorBruce Momjian <bruce@momjian.us>
Sat, 18 Jul 1998 14:38:12 +0000 (14:38 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 18 Jul 1998 14:38:12 +0000 (14:38 +0000)
but as I don't have access to a sparc for testing I just did what
I could. I am guessing here, but please apply the following to your
pgsql and let me know what happens. Also, cd to src/storage/buffer
and do 'make s_lock_test' as well.

David Gould

src/include/storage/s_lock.h

index 4808d3d..b628438 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.36 1998/06/16 07:18:16 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.37 1998/07/18 14:38:12 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -130,7 +130,7 @@ tas(volatile slock_t *lock)
 
     __asm__("ldstub [%1], %0" \
             : "=r"(_res), "=m"(*lock) \
-            : "1"(lock));
+            : "0"(lock));
        return (int) _res;
 }
 #endif /* sparc */