mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Fix for missing tas on some platforms.
This commit is contained in:
parent
85f7555132
commit
a2a0842d1c
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.3 1997/09/22 15:49:14 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.4 1997/09/22 15:59:19 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -205,7 +205,6 @@ static int tas(slock_t *lock);
|
|||||||
|
|
||||||
#define S_INIT_LOCK(lock) S_UNLOCK(lock)
|
#define S_INIT_LOCK(lock) S_UNLOCK(lock)
|
||||||
|
|
||||||
#ifdef NOT_USED
|
|
||||||
static int
|
static int
|
||||||
tas_dummy()
|
tas_dummy()
|
||||||
{
|
{
|
||||||
@ -226,7 +225,6 @@ tas_dummy()
|
|||||||
asm(" rts");
|
asm(" rts");
|
||||||
asm(" .data");
|
asm(" .data");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* sun3 */
|
#endif /* sun3 */
|
||||||
|
|
||||||
@ -243,7 +241,6 @@ tas_dummy()
|
|||||||
|
|
||||||
static int tas(slock_t *lock);
|
static int tas(slock_t *lock);
|
||||||
|
|
||||||
#ifdef NOT_USED
|
|
||||||
static int
|
static int
|
||||||
tas_dummy()
|
tas_dummy()
|
||||||
{
|
{
|
||||||
@ -276,7 +273,6 @@ tas_dummy()
|
|||||||
asm("retl");
|
asm("retl");
|
||||||
asm("nop");
|
asm("nop");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#define S_LOCK(addr) do \
|
#define S_LOCK(addr) do \
|
||||||
{ \
|
{ \
|
||||||
@ -366,7 +362,6 @@ tas_dummy()
|
|||||||
|
|
||||||
#if defined(linux) && defined(PPC)
|
#if defined(linux) && defined(PPC)
|
||||||
|
|
||||||
#ifdef NOT_USED
|
|
||||||
static int
|
static int
|
||||||
tas_dummy()
|
tas_dummy()
|
||||||
{
|
{
|
||||||
@ -385,7 +380,6 @@ success: \n\
|
|||||||
blr \n\
|
blr \n\
|
||||||
");
|
");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#define S_LOCK(lock) do \
|
#define S_LOCK(lock) do \
|
||||||
{ \
|
{ \
|
||||||
|
Loading…
Reference in New Issue
Block a user