|
发表于 2008-1-16 18:06:13
|
显示全部楼层
1=>Examines the TI field of the Segment Selector to determine which Descriptor Table stores the Segment Descriptor. This field indicates that the Descriptor is either in the GDT (in which case the segmentation unit gets the base linear address of the GDT from the gdtr register) or in the active LDT (in which case the segmentation unit gets the base linear address of that LDT from the ldtr register).
2=>Computes the address of the Segment Descriptor from the index field of the Segment Selector. The index field is multiplied by 8 (the size of a Segment Descriptor), and the result is added to the content of the gdtr or ldtr register.
3=>Adds the offset of the logical address to the Base field of the Segment Descriptor, thus obtaining the linear address.
以上的segment selector 和offset分别跟你说的对应! |
|