home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / m68k / 1101 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.9 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!mtxinu!taniwha!paul
  2. From: paul@taniwha.UUCP (Paul Campbell)
  3. Newsgroups: comp.sys.m68k
  4. Subject: Re: problems with m68882
  5. Keywords: m68882
  6. Message-ID: <1264@taniwha.UUCP>
  7. Date: 9 Sep 92 21:32:14 GMT
  8. References: <219@F_HOME.ahwau.ahold.nl> <92Sep08.184615.11893@acs.ucalgary.ca>
  9. Organization: Taniwha Systems Design
  10. Lines: 31
  11.  
  12. In article <92Sep08.184615.11893@acs.ucalgary.ca> norm@enel.ucalgary.ca (Norm Bartley) writes:
  13. >In article <219@F_HOME.ahwau.ahold.nl> leo@ontnix2.ahwau.ahold.nl (Leo Weppelman) writes:
  14.  
  15. >>I am getting coprocessor protocol violations at random but especially
  16. >>when a lot of interrupts occur (i.e. during disk accesses).
  17. >
  18. >I have had similar problems on my Amiga while trying to add 68882
  19. >support to Amiga Minix. I followed the exact same procedure as you for
  20. >saving/restoring/initializing the 68882 context. I would get coprocessor
  21. >protocol violations at random -- a process might bomb immediately, or it
  22. >might run for a few seconds and then bomb.
  23.  
  24. This is a common 68k/FPU problem - the CPU can take an interrupt while the
  25. FPU is halfway through an instruction - if your ISR can cause an FP instruction
  26. to occur (even if your compiler generates fmovem.l instructions with null masks
  27. in procedure headers) in an ISR or by causing a process switch, you have to
  28. save the FPU's state and clear it then restore it as you return from the
  29. interrupt.
  30.  
  31. It's called a coprocessor protocol violation because the FPU thinks it's 
  32. stalled halfway through an instruction and the CPU will feed it a new
  33. instruction before it's done the one it's working on
  34.  
  35.     Paul
  36.  
  37.  
  38. -- 
  39. Paul Campbell    UUCP: ..!mtxinu!taniwha!paul     AppleLink: CAMPBELL.P
  40.  
  41.        "Most American's day to day experience of 'Family Values' is found in
  42.     brightly colored fliers from such organisations as Target and K-Mart."
  43.