Skip to main content

init

Function init 

Source
pub(crate) unsafe fn init(info: &GdtSetupInfo)
Expand description

Enable the syscall/sysret instructions for this CPU and set the syscall entry point

ยงSafety

The caller must guarantee that:

  • This function is called exactly once per CPU
  • The GDT is already loaded on that CPU
  • This function is called before entering userspace for the first time on that CPU