home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 10894 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.4 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!yale.edu!ira.uka.de!Germany.EU.net!hcshh!hm
  2. From: hm@hcshh.hcs.de (Hellmuth Michaelis)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: [386BSD] fp exception after 387 installation - help !
  5. Keywords: 386BSD floating point 387
  6. Message-ID: <1612@hcshh.hcs.de>
  7. Date: 4 Jan 93 19:19:57 GMT
  8. References: <1610@hcshh.hcs.de> <1611@hcshh.hcs.de>
  9. Organization: HCS GmbH, Hamburg, Europe
  10. Lines: 21
  11.  
  12. In <1611@hcshh.hcs.de> hm@hcshh.hcs.de (Hellmuth Michaelis) writes:
  13.  
  14. >[about installing an 387 and getting floating point exceptions after that]
  15.  
  16. >But the problem stays ! There is (and was) a "double" declaration of getpcpu()
  17. >in ps.c - it solved the problem of the ps-coredump on the virgin 0.1, ps ran
  18. >fine after installing the patchkit until i installed the 387 ....
  19.  
  20. got the gdb up and had a look, the exception is caused by the final
  21. devide in the last line of getpcpu(), which reads
  22.  
  23. return(100.0 * fxtofl(p->p_pctcpu) / (1.0 - exp(p->p_time * log(fxtofl(ccpu)))));
  24.                                   ^^^
  25.                                   this causes the floating point exception.
  26. is it somehow possible to get more information out of the fpu what exactly
  27. caused the exception ?
  28.  
  29. hellmuth
  30. -- 
  31. hellmuth michaelis    HCS Hanseatischer Computerservice GmbH   hamburg, europe
  32. hm@hcshh.hcs.de              tel: +49/40/55903-170         fax: +49/40/5591486
  33.