mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
cleanup.
This commit is contained in:
parent
27aaf9df7e
commit
75815c3100
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.30 2001/01/19 20:39:16 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.31 2001/01/19 21:09:57 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -144,7 +144,8 @@ _tas: \n\
|
|||||||
rts \n\
|
rts \n\
|
||||||
_success: \n\
|
_success: \n\
|
||||||
moveq #0,d0 \n\
|
moveq #0,d0 \n\
|
||||||
rts");
|
rts \n\
|
||||||
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __m68k__ */
|
#endif /* __m68k__ */
|
||||||
@ -198,7 +199,8 @@ fail: li 3,1 \n\
|
|||||||
blr \n\
|
blr \n\
|
||||||
success: \n\
|
success: \n\
|
||||||
li 3,0 \n\
|
li 3,0 \n\
|
||||||
blr");
|
blr \n\
|
||||||
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __powerpc__ */
|
#endif /* __powerpc__ */
|
||||||
@ -222,7 +224,8 @@ tas: \n\
|
|||||||
j $31 \n\
|
j $31 \n\
|
||||||
fail: \n\
|
fail: \n\
|
||||||
li $2, 1 \n\
|
li $2, 1 \n\
|
||||||
j $31");
|
j $31 \n\
|
||||||
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __mips__ */
|
#endif /* __mips__ */
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.83 2001/01/19 20:39:16 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.84 2001/01/19 21:09:57 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -103,12 +103,12 @@ extern void s_lock_sleep(unsigned spins, int microsec,
|
|||||||
* Standard _asm format:
|
* Standard _asm format:
|
||||||
*
|
*
|
||||||
* __asm__ __volatile__(
|
* __asm__ __volatile__(
|
||||||
* "command \n"
|
"command \n"
|
||||||
* "command \n"
|
"command \n"
|
||||||
* "command \n"
|
"command \n"
|
||||||
* : "=r"(_res) return value, in register
|
: "=r"(_res) return value, in register
|
||||||
* : "r"(lock) argument, 'lock pointer', in register
|
: "r"(lock) argument, 'lock pointer', in register
|
||||||
* : "r0"); inline code uses this register
|
: "r0"); inline code uses this register
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -349,7 +349,7 @@ tas(volatile slock_t *lock)
|
|||||||
"mb \n"
|
"mb \n"
|
||||||
"br 3f \n"
|
"br 3f \n"
|
||||||
"2: mov 1, %1 \n"
|
"2: mov 1, %1 \n"
|
||||||
"3:"
|
"3: \n"
|
||||||
: "=m"(*lock), "=r"(_res)
|
: "=m"(*lock), "=r"(_res)
|
||||||
:
|
:
|
||||||
: "0");
|
: "0");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user