From: Tom Lane Date: Sat, 10 Feb 2001 04:07:25 +0000 (+0000) Subject: Fix byte-vs-word-width oversight in m68k TAS() code. X-Git-Tag: REL7_1~507 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af0a15287de5ca254460ddefd4345cf62c577b5f;p=postgresql Fix byte-vs-word-width oversight in m68k TAS() code. Man, this brings back some old memories ... --- diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h index 33dc5b6226..726c3645e5 100644 --- a/src/include/storage/s_lock.h +++ b/src/include/storage/s_lock.h @@ -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");