Skip site navigation (1) Skip section navigation (2)

Re: [PORTS] Port Bug Report: PostgreSQL does not compile on ARM systems

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Andrew McMurry <a(dot)mcmurry1(at)physics(dot)ox(dot)ac(dot)uk>
Cc: pgsql-ports(at)postgreSQL(dot)org
Subject: Re: [PORTS] Port Bug Report: PostgreSQL does not compile on ARM systems
Date: 1999-03-29 17:55:20
Message-ID: 36FFBE88.E8BF2A34@alumni.caltech.edu (view raw or flat)
Thread:
Lists: pgsql-ports
> Problem Description:
> --------------------
> The PostgreSQL sources fail to compile on NetBSD/arm32
> systems due to the lack of a TAS function.
> Solution:
> ---------
> I am sorry that this isn't a proper patch.

I am too :(

So, if someone were to add this TAS capability, does everything build
properly? Do the regression tests look reasonable? Do we have a fully
supported platform with all the bells and whistles??

I'd like to add your platform to the supported list for the upcoming
release...

                       - Tom

> Add the following into src/include/storage/s_lock.h:
> 
> #if defined(__arm32__)
> #define TAS(lock) tas(lock)
> 
> static __inline__ int
> tas(volatile slock_t *lock)
> {
>         register slock_t _res = 1;
> 
> __asm__("swpb %0, %0, [%3]": "=r"(_res), "=m"(*lock):"0"(_res), "r" (lock));
>         return (int) _res;
> }
> 
> #endif   /* __arm32__ */

In response to

pgsql-ports by date

Next:From: Andrew MerrillDate: 1999-03-30 18:50:50
Subject: built 6.4.2 on SCO OpenServer 5.0.5
Previous:From: Thomas LockhartDate: 1999-03-29 15:57:41
Subject: Re: [PORTS] Port Bug Report: Will not compile under SCO OSR 5.0.5

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group