Subject: Re: FPU and signal delivery
To: None <port-mips@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: port-mips
Date: 04/12/2002 13:24:11
In article <1faiq7x.hegxbo7038hM@[10.0.12.137]>,
Emmanuel Dreyfus <manu@netbsd.org> wrote:
>Hi!
>
>One more question on signal delivery: 
>we use a sc_fpused field in struct sigcontext to remeber if we must call
>savefpregs/loadfpregs. Why is this needed? We also save these registers
>in struct sigcontext.
>
>I wonder this because when IRIX uses SA_SIGINFO, context is saved in a
>struct irix_ucontext, which does not have a fpused field or something
>similar. Hence I wonder what to do with savefpregs/loadfpregs. 
>
>One solution is to add a fpused field at the end of the struct
>irix_ucontext. IRIX binaries will not notice it, and I can use it to
>keep track of fpused. But before doing this, I'd like to understand what
>I'm doing here.

That would belong in mcontext, although I don't understand why it is
needed.

christos