Function init
Source pub(crate) unsafe fn init()
Expand description
Initializes interrupt handling on x86_64.
This function will:
- Switch to a new, CPU-local GDT.
- Switch to a new, CPU-local TSS.
- Switch to a new, global IDT.
- Enable the
syscall
instruction.
ยงSafety
This method must be called only in the boot context of each available processor.