mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
Lock fix from Tom Ivar Helbekkmo .
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.41 1998/07/19 04:16:59 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.42 1998/07/19 09:44:36 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -128,9 +128,9 @@ tas(volatile slock_t *lock)
|
|||||||
{
|
{
|
||||||
register slock_t _res = 1;
|
register slock_t _res = 1;
|
||||||
|
|
||||||
__asm__("ldstub [%1], %0" \
|
__asm__("ldstub [%2], %0" \
|
||||||
: "=r"(_res), "=m"(*lock) \
|
: "=r" (_res), "=m" (*lock) \
|
||||||
: "0"(lock));
|
: "r" (lock));
|
||||||
return (int) _res;
|
return (int) _res;
|
||||||
}
|
}
|
||||||
#endif /* sparc */
|
#endif /* sparc */
|
||||||
|
Reference in New Issue
Block a user