pub fn init_trap()Expand description
Initializes trap handling 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
configure the handler for syscall instruction.
ยงNotes
Before calling this function, the initialization function of the ax-percpu
crate should have been invoked to ensure that the per-CPU data structures
are set up correctly (i.e., by calling init_percpu).