Global Descriptor Table: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
m Corrected bit offsets for x86-64
mNo edit summary
Line 37:
 
=== x86-64 Changes ===
* '''L''' bit (bit 53, next to '''Sz''') is used to indicate x86-64 code descriptor. '''This bit is reserved for data segments'''
* '''Sz''' bit (bit 54) has to be 0 when the '''L''' bit is set, as the combination '''Sz''' = 1, '''L''' = 1 is reserved for future use (and will throw an exception if you try to use it)
<br/>
The [[LGDT]] instruction will look for a 8-byte base address in long mode.