* remove "\r" nonsense
[mascara-docs.git] / i386 / i386.reference / s09_09.htm
blob9275d0cd8ed9b3203467ce0ee242ddfec0b6ee9e
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2 <HTML>
3 <HEAD>
4 <TITLE>80386 Programmer's Reference Manual -- Section 9.9</TITLE>
5 </HEAD>
6 <BODY>
7 <B>up:</B> <A HREF="c09.htm">
8 Chapter 9 -- Exceptions and Interrupts</A><BR>
9 <B>prev:</B> <A HREF="s09_08.htm">9.8 Exception Conditions</A><BR>
10 <B>next:</B> <A HREF="s09_10.htm">9.10 Error Code Summary</A>
11 <P>
12 <HR>
13 <P>
14 <H1>9.9 Exception Summary</H1>
15 Table 9-6 summarizes the exceptions recognized by the 386.
16 <PRE>
17 Table 9-6. Exception Summary
19 Description Interrupt Return Address Exception Function That Can Generate
20 Number Points to Type the Exception
21 Faulting
22 Instruction
24 Divide error 0 YES FAULT DIV, IDIV
25 Debug exceptions 1
26 Some debug exceptions are traps and some are faults. The exception
27 handler can determine which has occurred by examining DR6. (Refer to <A HREF="c12.htm">Chapter 12</A>.)
28 Some debug exceptions are traps and some are faults. The exception
29 handler can determine which has occurred by examining DR6. (Refer to <A HREF="c12.htm">Chapter 12</A>.) Any instruction
30 Breakpoint 3 NO TRAP One-byte INT 3
31 Overflow 4 NO TRAP INTO
32 Bounds check 5 YES FAULT BOUND
33 Invalid opcode 6 YES FAULT Any illegal instruction
34 Coprocessor not available 7 YES FAULT ESC, WAIT
35 Double fault 8 YES ABORT Any instruction that can
36 generate an exception
37 Coprocessor Segment
38 Overrun 9 NO ABORT Any operand of an ESC
39 instruction that wraps around
40 the end of a segment.
41 Invalid TSS 10 YES FAULT
42 An invalid-TSS fault is not restartable if it occurs during the
43 processing of an external interrupt. JMP, CALL, IRET, any interrupt
44 Segment not present 11 YES FAULT Any segment-register modifier
45 Stack exception 12 YES FAULT Any memory reference thru SS
46 General Protection 13 YES FAULT/ABORT
47 All GP faults are restartable. If the fault occurs while attempting to
48 vector to the handler for an external interrupt, the interrupted program is
49 restartable, but the interrupt may be lost. Any memory reference or code
50 fetch
51 Page fault 14 YES FAULT Any memory reference or code
52 fetch
53 Coprocessor error 16 YES FAULT
54 Coprocessor errors are reported as a fault on the first ESC or WAIT
55 instruction executed after the ESC instruction that caused the error. ESC, WAIT
56 Two-byte SW Interrupt 0-255 NO TRAP INT n
57 </PRE>
58 <P>
59 <HR>
60 <P>
61 <B>up:</B> <A HREF="c09.htm">
62 Chapter 9 -- Exceptions and Interrupts</A><BR>
63 <B>prev:</B> <A HREF="s09_08.htm">9.8 Exception Conditions</A><BR>
64 <B>next:</B> <A HREF="s09_10.htm">9.10 Error Code Summary</A>
65 </BODY>