Fix byte-vs-word-width oversight in m68k TAS() code.

Man, this brings back some old memories ...
This commit is contained in:
Tom Lane 2001-02-10 04:07:25 +00:00
parent 11da9e5cf8
commit af0a15287d

View File

@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.87 2001/02/02 18:21:59 momjian Exp $
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.88 2001/02/10 04:07:25 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -222,8 +222,9 @@ tas(volatile slock_t *lock)
register int rv;
__asm__ __volatile__(
" tas %1 \n"
" sne %0 \n"
" clrl %0 \n"
" tas %1 \n"
" sne %0 \n"
: "=d"(rv), "=m"(*lock)
: "1"(*lock)
: "cc");