English
Language : 

GXLV Datasheet, PDF (82/247 Pages) National Semiconductor (TI) – Geode™ GXLV Processor Series Low Power Integrated x86 Solutions
Processor Programming (Continued)
3.6.5 Exceptions in Real Mode
Many of the exceptions described in Table 3-29 "Interrupt
Vector Assignments" on page 80 are not applicable in real
mode. Exceptions 10, 11, and 14 do not occur in real
mode. Other exceptions have slightly different meanings
in real mode as listed in Table 3-31.
Table 3-31. Exception Changes in Real Mode
Vector
Number
8
10
11
12
13
14
Protected Mode
Function
Double fault.
Invalid TSS.
Segment not
present.
Stack fault.
General protection
fault.
Page fault.
Real Mode
Function
Interrupt table limit overrun.
Does not occur.
Does not occur.
SS segment limit overrun.
CS, DS, ES, FS, GS seg-
ment limit overrun. In pro-
tected mode, an error code is
pushed. In real mode, no
error code is pushed.
Does not occur.
3.6.6 Error Codes
When operating in protected mode, the following exceptions
generate a 16-bit error code:
• Double Fault
• Alignment Check
• Invalid TSS
• Segment Not Present
• Stack Fault
• General Protection Fault
• Page Fault
The error code format and bit definitions are shown in
Table 3-32. Bits [15:3] (selector index) are not meaningful
if the error code was generated as the result of a page
fault. The error code is always zero for double faults and
alignment check exceptions.
Table 3-32. Error Codes
15 14 13 12 11 10
9
8
7
6
5
4
Selector Index
Table 3-33. Error Code Bit Definitions
Fault
Type
Selector Index
(Bits 15:3)
S2 (Bit 2)
S1 (Bit 1)
Page
Fault
Reserved.
IDT Fault Index of faulty IDT
selector.
Fault caused by:
0 = Not present page
1 = Page-level protection
violation
Reserved
Fault occurred during:
0 = Read access
1 = Write access
1
Segment Index of faulty
TI bit of faulty selector
0
Fault
selector.
3
2
1
0
S2
S1
S0
S0 (Bit 0)
Fault occurred during
0 = Supervisor access
1 = User access.
If = 1, exception occurred while
trying to invoke exception or
hardware interrupt handler.
If =1, exception occurred while
trying to invoke exception or
hardware interrupt handler.
www.national.com
82
Revision 1.1