Re: lock support for aarch64 - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: lock support for aarch64
Date
Msg-id 51910897.6070500@vmware.com
Whole thread Raw
In response to Re: lock support for aarch64  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: lock support for aarch64  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 13.05.2013 18:14, Tom Lane wrote:
> Mark Salter<msalter@redhat.com>  writes:
>> I used the following patch to add lock support aarch64. It is just a
>> copy of the arm support based on gcc builtins. Postgresql built with
>> this patch passes the various tests.
>
> Couldn't we just do
>
> -#if defined(__arm__) || defined(__arm)
> +#if defined(__arm__) || defined(__arm) || defined(__aarch64__)
>
> in the existing ARM code block?

That would imply falling back to swpb instruction also on aarch64, which 
won't work.

- Heikki



pgsql-hackers by date:

Previous
From: Robins Tharakan
Date:
Subject: Re: Add more regression tests for dbcommands
Next
From: Tom Lane
Date:
Subject: Re: erroneous restore into pg_catalog schema