x86_64::instructions::tables

Function lgdt

Source
pub unsafe fn lgdt(gdt: &DescriptorTablePointer)
Expand description

Load a GDT.

Use the GlobalDescriptorTable struct for a high-level interface to loading a GDT.

ยงSafety

This function is unsafe because the caller must ensure that the given DescriptorTablePointer points to a valid GDT and that loading this GDT is safe.