x86_64::instructions::tables

Function lidt

Source
pub unsafe fn lidt(idt: &DescriptorTablePointer)
Expand description

Load an IDT.

Use the InterruptDescriptorTable struct for a high-level interface to loading an IDT.

ยงSafety

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