![](http://datasheet.mmic.net.cn/340000/80376_datasheet_16452094/80376_19.png)
376 EMBEDDED PROCESSOR
Table 2.7. Register Values after Reset
Flag Word (EFLAGS)
uuuu0002H
(Note 1)
Machine Status Word (CR0)
uuuuuuu1H
(Note 2)
Instruction Pointer (EIP)
0000FFF0H
Code Segment (CS)
F000H
(Note 3)
Data Segment (DS)
0000H
(Note 4)
Stack Segment (SS)
0000H
Extra Segment (ES)
0000H
(Note 4)
Extra Segment (FS)
0000H
Extra Segment (GS)
0000H
EAX Register
0000H
(Note 5)
EDX Register
Component and Stepping ID
(Note 6)
All Other Registers
Undefined
(Note 7)
NOTES:
1. EFLAG Register. The upper 14 bits of the EFLAGS register are undefined, all defined
flag bits are zero.
2. CR0: The defined 4 bits in the CR0 is equal to 1H.
3. The Code Segment Register (CS) will have its Base Address set to 0FFFF0000H and
Limit set to 0FFFFH.
4. The Data and Extra Segment Registers (DS and ES) will have their Base Address set
to 000000000H and Limit set to 0FFFFH.
5. If self-test is selected, the EAX should contain a 0 value. If a value of 0 is not found
the self-test has detected a flaw in the part.
6. EDX register always holds component and stepping identifier.
7. All unidentified bits are Intel Reserved and should not be used.
2.9 Initialization
Because the 80376 processor starts executing in protected mode, certain precautions need be taken during
initialization. Before any far jumps can take place the GDT and/or LDT tables need to be setup and their
respective registers loaded. Before interrupts can be initialized the IDT table must be setup and the IDTR must
be loaded. The example code is shown below:
; ****************************************************************
;
; This is an example of startup code to put either an 80376,
; 80386SX or 80386 into flat mode. All of memory is treated as
; simple linear RAM. There are no interrupt routines. The
; Builder creates the GDT-alias and IDT-alias and places them,
; by default, in GDT
[
1
]
and GDT
[
2
]
.
; are specified in the Build file.
; to a C startup routine. To use this template, change this jmp
; address to that of your code, or make the label of your code
; ‘c startup‘.
;
; This code was assembled and built using version 1.2 of the
; Intel RLL utilities and Intel 386ASM assembler.
;
;
***
This code was tested
;
; ****************************************************************
Other entries in the GDT
After initialization it jumps
***
19