I want a signalhandler, which splits out sigfpe to the different copro 
signals. I found a linux example, which is based on the statusword field of the
sigcontext structure passed to the signalhandler set 

Problem is that the linux sigcontext has a field for the floatingpoint statusword,
while the BSD sigcontext (machine/signal.h) has only two arrays of int's:

(FPU part struct sigcontext
     * XXX FPU state is 27 * 4 bytes h/w, 1 * 4 bytes s/w (probably not
         * needed here), or that + 16 * 4 bytes for emulators (probably all
         * needed here).  The "spare" bytes are mostly not spare.
         */
        int     sc_fpregs[28];          /* machine state (FPU): */
        int     sc_spare[17];
};

Does somebody know how to distille the FP statusword from this struct?

Marco van de Voort ([EMAIL PROTECTED])
<http://www.stack.nl/~marcov/xtdlib.htm>



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to