Re: [HACKERS] Current sources?

Bruce Momjian <maillist@candle.pha.pa.us>

From: Bruce Momjian <maillist@candle.pha.pa.us>
To: t-ishii@sra.co.jp
Cc: dg@illustra.com, tih+mail@Hamartun.Priv.NO, scrappy@hub.org, pgsql-hackers@postgreSQL.org
Date: 1998-06-16T07:53:39Z
Lists: pgsql-hackers
> 
> >> PPC/Linux has been broken too.
> >
> >Please let me know what the problem was, even if it was just the 'global tas'
> >thing. I am trying to make sure this works on all platforms. Thanks.
> 
> Here are patches for s_lock.c (against May23 snapshot).
> ----------------------------------------------------------
> *** s_lock.c.orig	Mon May 25 18:08:20 1998
> --- s_lock.c	Mon May 25 18:08:57 1998
> ***************
> *** 151,161 ****
>   
>   #if defined(PPC)
>   
> ! static int
> ! tas_dummy()
>   {
>   	__asm__("				\n\
> - tas:						\n\
>   			lwarx	5,0,3	\n\
>   			cmpwi	5,0		\n\
>   			bne		fail	\n\
> --- 151,160 ----
>   
>   #if defined(PPC)
>   
> ! int
> ! tas(slock_t *lock)
>   {
>   	__asm__("				\n\
>   			lwarx	5,0,3	\n\
>   			cmpwi	5,0		\n\
>   			bne		fail	\n\

This patch appears to have been applied already.

-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)