Re: Trapping PPC errors



To catch floating-point divide by zero, you need to enable exceptions
in the fpscr, request precise fp exceptions via prctl(), and write an
appropriate SIGFPE handler.

This is a little closer to the hardware than I'm used to programming.
Where can I find this manual you mention? Does it show how to
actually enable these exceptions (ie, code sample?)

Matt

.



Relevant Pages

  • Re: Simtec v Castle USB
    ... > and OS manufacturers have to work hard to keep up with that. ... > shedload of exceptions for every non-conformant CD ROM drive that the ... buy your devices via a RISC OS supplier. ... but I feel that if the hardware developers truly ...
    (comp.sys.acorn.hardware)
  • Re: Would You Fly an Airplane with a Linux-Based Control System?
    ... it sounds like your trying to blame the hardware. ... Didn't they turn off all exceptions checks? ... You must understande that modern CPUs there support hardware exceptions and ... modern programming laguages support software exceptions. ...
    (comp.lang.ada)
  • Re: Need of "Precise Exceptions"
    ... Ripunjay Tripathi wrote: ... make its exceptions "precise", either in the hardware or with some ... either in the hardware or with some software support. ...
    (comp.arch)
  • Re: unexpected exception handler
    ... I think for I/O fail, even if H/W fail, it should be reflected into some ... it should be possible to write code to catch all I/O exceptions -- ... That's not really a hardware failure. ...
    (microsoft.public.vc.language)
  • Re: What software is compatible with WXP?
    ... The majority of software that works on 2000 will work on XP. ... exceptions may be those that access the hardware such as CD Burner ...
    (microsoft.public.windowsxp.newusers)