Re: [HACKERS] s_lock.h line 178 - Mailing list pgsql-hackers

From Andreas Zeugswetter
Subject Re: [HACKERS] s_lock.h line 178
Date
Msg-id 01BE0253.58F6E830@zeugswettera.user.lan.at
Whole thread Raw
Responses Re: [HACKERS] s_lock.h line 178  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
> Except that now causes an illegal instruction fault, since the
> assembler thinks the second instruction is some of the args to
> the first.  Will '\n\' work instead of '\' as I modified the
> patch below?

Yes, sorry, therefore only this will work.

*** s_lock.h.ori    Tue Oct 13 14:21:55 1998
--- s_lock.h    Tue Oct 27 18:03:57 
1998
***************
*** 175,181 **** tas(volatile slock_t *lock) {  register _res;
!   __asm__("sbitb 0, %0     sfsd %1"     : "=m"(*lock), 
"=r"(_res));   return (int) _res; 
--- 175,181 ---- tas(volatile 
slock_t *lock) {   register _res;
!   __asm__("sbitb 0, %0 \n\     sfsd %1"     : "=m"(*lock), "=r"(_res));   return (int) _res; 




pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Open 6.4 items
Next
From: Andreas Zeugswetter
Date:
Subject: AIX 4.2.1 regression test