home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / realtime / 1618 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.6 KB

  1. From: gallag@hpwala.wal.hp.com (Mike Gallagher)
  2. Date: Thu, 21 Jan 1993 22:15:08 GMT
  3. Subject: Re: Interrupt handlers and Motorola F.P. coprocessor MC68882?
  4. Message-ID: <4113@hpwala.wal.hp.com>
  5. Organization: Hewlett-Packard Waltham Division
  6. Path: sparky!uunet!usc!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpcss01!hpwala!gallag
  7. Newsgroups: comp.realtime
  8. References: <1993Jan20.131209.3719@ddci.dk>
  9. Distribution: comp
  10. Sender: netnews@hpwala.wal.hp.com
  11. Reply-To: gallag@hpwala.wal.hp.com (Mike Gallagher)
  12. Keywords: Motorola MC68882, Interrupt latency, Interrupt context saving
  13. Lines: 23
  14.  
  15.  
  16. |> The Motorola manual for the MC68881/MC68882 floating point
  17. |> coprocessors state that in the case of an MC68882 coprocessor one
  18. |> must always save and restore (fsave/frestore) the coprocessor state
  19. |> around handlers for all external interrupts, even though the
  20. |> interrupt handler does not use floating point operations. This
  21. |> seems to be a high price to pay for faster floating point
  22. |> operations. Does anyone out there  have experience regarding this? Is
  23. |> there any explanation for it? What happens if you don't do as
  24. |> stated?
  25.  
  26. From the MC68881/MC68882 Floating-Point Coprocessor User's Manual
  27.  
  28. Section 6.2.5 Interrupt (page 6-27)
  29.  
  30. If an interrupt handler for a system using an FPCP requires the use of the
  31. FPCP, or if a task switch requires that the context be saved, an FSAVE
  32. instruction should be the first floating-point instruction executed by
  33. the routine.  To restore the original context, an FRESTORE must be executed
  34. by the routine before the RTE instruction.  If an interrupt handler does
  35. no interact with the FPCP, no context save operations are required.
  36.  
  37. Mike Gallagher
  38.