Subject: Re: postgresql pkg & TAS
To: None <webmaster@largesalad.co.uk>
From: Brian Brunswick <bdb@eidos.co.uk>
List: port-arm32
Date: 04/06/1999 09:40:24
In article <370208EA.24A71C6@largesalad.co.uk> you write:
>
>
>Brian Brunswick wrote:
>
>> 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
>
>Where should this code go?
>
>regards,
>Dave
>
>--
>Make it idiot-proof and someone will make a better idiot!
>
>e-mail: webmaster@largesalad.co.uk
>net: http://www.largesalad.co.uk/DJMsoft/
>
>

The config scripts generated an empty TAS.s, so I bunged in in there.
I suppose the header file version using gcc inline assembly is probably
nicer anyhow.