Subject: Re: ARM ELF toolchain patches
To: Ben Harris , David Forbes <david@flossy.u-net.com>
From: Chris Gilbert <chris@paradox.demon.co.uk>
List: port-arm26
Date: 02/22/2001 23:11:31
On Thursday 22 February 2001 11:00 pm, Ben Harris wrote:
> On Thu, 22 Feb 2001, David Forbes wrote:
> > > > Either one of those would get you FPA support (assuming a suitable
> > > > kernel, which I believe we don't yet have).  The former would produce
> > > > much faster code, but might take rather longer.
> >
> > Question:  what needs to be done to the kernel to get either of these to
> > work?  When I first got NetBSD going on my A7000+ I enquired about FPA
> > support and I got the impression that either -mhard-float or the modified
> > libc would be sufficient.
>
> As far as I can tell, the arm32 kernel doesn't currently have any code for
> saving and restoring FPA state on context switches.  It may be that the
> necessary code is there, and I haven't been able to find it, though.
> Come to think of it, it may be in the ARM FPE, which is binary-only.

Nope I don't think we actually support the FPA's other than detecting them.   
We install a handler on COPROC1 for it, that just outputs an FPA exception.  
See the comment above fpa_handler in arm32/cpu.c

Cheers,
Chris