background image

Vol. 3A 9-23

PROCESSOR MANAGEMENT AND INITIALIZATION

Figure 9-4.  Constructing Temporary GDT and Switching to Protected Mode (Lines 162-172 of List File)

FFFF FFFFH

Base=0, Limit=4G

START: [CS.BASE+EIP]

TEMP_GDT

• Jump near start

FFFF 0000H

• Construct TEMP_GDT
• LGDT
• Move to protected mode

DS, ES = GDT[1]

4 GB

0

GDT [1]
GDT [0]

GDT_SCRATCH

Base

Limit