Skip to main content

read_gdt_raw

Function read_gdt_raw 

Source
unsafe fn read_gdt_raw(gdt_base: *const u64, index: usize) -> u64
Expand description

Reads an 8-byte GDT descriptor at the given index (base 0).

ยงSafety

gdt_base must be the address returned by sgdt and index must remain within the limit of the GDTR.