Subject: Re: postgresql pkg & TAS
To: None <port-arm32@netbsd.org>
From: Brian Brunswick <bdb@eidos.co.uk>
List: port-arm32
Date: 03/29/1999 13:01:37
In article <Pine.GSO.4.00.9903282041320.2246-100000@rfhs8036.fh-regensburg.de> you write:
>
>On Mon, 29 Mar 1999 proff@suburbia.net wrote:
>> trivial. Please feed the new locking code back to the postgresql team if you do.
>
>Um, this locking code was exactly what I'm asking for - I don't neither
>know postgresql nor arm32 machine language, sorry.
>
>
> - Hubert
>
>-- 
>Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
>


I've had success with the following:
Sorry for not returning it sooner!

@ Used to be  Generated by gcc 2.7.2.2+myc1 for ARM/NetBSD
rfp     .req    r9
sl      .req    r10
fp      .req    r11
ip      .req    r12
sp      .req    r13
lr      .req    r14
pc      .req    r15
gcc2_compiled.:
___gnu_compiled_c:
.text
        .align  0
        .global _TAS
        .type    _TAS,#function
_TAS:
        mov r1,#1
        swp r1,r1,[r0]
        mov r0,r1
        mov pc,lr
Lfe1:
        .size    _TAS,Lfe1-_TAS