Skip to content
Commit ad5ceda2 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

x86: cleanup handling of 16-byte GDT descriptors



Look them up using a gdt_entry_t pointer, so that the address of
the descriptor is correct even for "odd" selectors (e.g. 0x98).
Rename the struct from segment_desc64 to system_desc64,
highlighting that it is only used in the case of S=0 (system
descriptor).  Rename the "limit" bitfield to "limit2", matching
the convention used for the various parts of the base field.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 2f95915f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment