Commit af0a1528 authored by Tom Lane's avatar Tom Lane

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

Man, this brings back some old memories ...
parent 11da9e5c
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment