Function init

Source
pub unsafe fn init()
Expand description

Initialize 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.