Re: FPU and signal delivery

[email protected] (Christos Zoulas) Fri, 12 Apr 2002 13:24:11 GMT
Newsgroups gmane.os.netbsd.ports.mips
Organization Trans-Atlantic Communications
Message-ID <[email protected]>
In article <1faiq7x.hegxbo7038hM@[10.0.12.137]>,
Emmanuel Dreyfus <[email protected]> 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