Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit af0a152

Browse files
committed
Fix byte-vs-word-width oversight in m68k TAS() code.
Man, this brings back some old memories ...
1 parent 11da9e5 commit af0a152

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/include/storage/s_lock.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.87 2001/02/02 18:21:59 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.88 2001/02/10 04:07:25 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -222,8 +222,9 @@ tas(volatile slock_t *lock)
222222
register int rv;
223223

224224
__asm__ __volatile__(
225-
" tas %1 \n"
226-
" sne %0 \n"
225+
" clrl %0 \n"
226+
" tas %1 \n"
227+
" sne %0 \n"
227228
: "=d"(rv), "=m"(*lock)
228229
: "1"(*lock)
229230
: "cc");

0 commit comments

Comments
 (0)