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.
  • This function should be executed after boot starts before boot ends.

  • This function should be called only once per available processor.