80386

When operating in Protected Mode, the segment base, limit, and other attributes within the segment cache registers are defined as shown in Figure 4-12. In Protected Mode, each of these fields are defined

according to the contents of the segment descriptor indexed by the selector value loaded into the seg- ment register.

SEGMENT

DESCRIPTOR CACHE REGISTER CONTENTS

 

 

 

32 -

BIT BASE

32 - BIT LIMIT

OTHER ATTRIBUTES

 

 

(UPDATED DURING

(UPDATED DURING

(UPDATED DURING

 

 

SELECTOR LOAD INTO

SELECTOR LOAD INTO

SELECTOR LOAD INTO

 

 

SEGMENT REGISTER)

SEGMENT REGISTER)

SEGMENT REGISTER)

 

CONFORMING PRIVILEGE -----------------------

 

. ,

STACK SIZE -----------------------

 

,

 

EXECUTABLE -----------------------

,

 

WRITEABLE

--------------------

~

 

 

READABLE --------------------

,

 

 

EXPANSION DIRECTION

 

1

 

 

GRANULARITY

 

 

 

ACCESSED

 

 

1

 

 

~:!~~~~E_L~~E~~~s~___________ :I~I!______ ~J1____

 

CS

BASE PER SEG DESCR

LIMIT PER SEG DESCR

P d d d d d N Y -

d

SS

BASE PER SEG DESCR

LIMIT PER SEG DESCR

P d d d d r w N d

-

OS

BASE PER SEG DESCR

LIMIT PER SEG DESCR

p d d d d d d N - -

ES

BASE PER SEG DESCR

LIMIT PER SEG DESCR

p d d d d d d N -

-

FS

BASE PER SEG DESCR

LIMIT PER SEG DESCR

P d d d d d d N -

-

GS

BASE PER SEG DESCR

LIMIT PER SEG DESCR

p d d d d d d N - -

231630-61

Key: Y = fixed yes N = fixed no

d = per segment descriptor

p= per segment descriptor; descriptor must indicate "present" to avoid exception 11 (exception 12 in case of SS)

r= per segment descriptor, but descriptor must indicate "readable" to avoid exception 13 (special case for SS)

w= per segment descriptor, but descriptor must indicate "writable" to avoid exception 13 (special case for SS)

-= does not apply to that segment cache register

Figure 4-12. Segment Descriptor Caches for Protected Mode (Loaded per Descriptor)

43

Page 104
Image 104
Intel 80386 manual ~!~~~~E L~~E~~~s~ I~I! ~ J