On 13.05.2013 18:14, Tom Lane wrote:
> Mark Salter<msalter(at)redhat(dot)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