Re: enabling x87 interrupts
- From: "Rod Pemberton" <spamtrap@xxxxxxxxxx>
- Date: Fri, 25 Aug 2006 12:45:27 -0400
"Alexei A. Frounze" <spamtrap@xxxxxxxxxx> wrote in message
news:9tGdnYy8o5tcxnPZnZ2dnUVZ_sadnZ2d@xxxxxxxxxxxxxx
Wendy E. McCaughrin wrote:it's
Is the 8259A (PIC) still used to enable interrupts? I unmasked bit #2
in the master PIC and bit #5 (a.k.a. #13) in the slave PIC it cascades
with, to enable FPU interrupts. I have unmasked all 6 exceptions in
the FPU's control-word and use STI. Yet, INT 75h is never accessed.
Nowadays, there's no external FPU chip that would assert interrupts on the
PIC. The CPU itself handles all the FP instructions. And my bet is that
configured in such a way that you should get exceptions, not interrupts.
What Alexei is refering to is the NE flag in CR0. If you didn't clear NE
when switching to protected mode (recommended, set later if necessary), then
you may not be getting Int 0x75. If the CR0 NE flag is 0, then an IRQ13
(Int 0x75) is (or should be) generated, otherwise a CPU exception 10h (Int
0x10) is (or should be) generated.
"While CR0.NE is 0, the processor is in what is called "MS-DOS compatibility
mode"; here the South Bridge is expected to generate an IRQ13 in response to
the FERR# assertion, to signal the FPU exception back to the processor.
While CR0.NE is 1, the processor is in what is called "native mode"; here
the #MF exception is used to signal the FPU exception; software is expected
to either disable the IRQ13 generation in the South Bridge, or mask off
IRQ13 via the interrupt controller, or ignore any INTRs caused by IRQ13.
Waiting FPU instructions and MMX instructions do generate the #MF exception;
no-wait FPU instructions, FXSAVE, and FXRSTOR don't (i.e. execution
continues)."
FERR# information:
http://www.sandpile.org/ia32/legacy.htm
The following Intel document, which I haven't read, seems to cover this
issue.
"Software and Hardware Considerations for FPU Exception Handlers for Intel
Architecture Processors" Intel AP-578
http://www.intel.com/design/intarch/applnots/243291.htm
Rod Pemberton
.
- Follow-Ups:
- Re: enabling x87 interrupts
- From: Scott J. McCaughrin
- Re: enabling x87 interrupts
- Prev by Date: Re: Suggestion for some good ASM books?
- Next by Date: Re: 64bit/64bit fixed point division?
- Previous by thread: Re: enabling x87 interrupts
- Next by thread: Re: enabling x87 interrupts
- Index(es):
Relevant Pages
|