From: Jeff Dike <jdike@ka...> - 2002-05-22 01:07:50
> What's the proper way to get the size of sc?
sc is a sigcontext, so its size is sizeof(struct sigcontext.
The FPU state is a problem, since it varies between 2.2 and 2.4. What I do is
deliver a signal on the top of a page (which has been declared as the
alternate signal stack). Then, everything above the sigcontext is assumed
to be the FPU state.
> and am i correct in
> assuming that all FPU state is in regs.regs.sc?
Yes, that's the host's sigcontext struct, which contains the FPU state in
Get latest updates about Open Source Projects, Conferences and News.