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