axhal::arch

Function cpu_init

Source
pub fn cpu_init()
Expand description

Initializes CPU states on the current CPU.

In detail, it initializes the GDT, IDT on x86_64 platforms. If the uspace feature is enabled, it also initializes relevant model-specific registers to enable the syscall instruction.