marcel_os::gdt

Function init

Source
pub fn init()
Expand description

Initializes the Global Descriptor Table (GDT) and the Task State Segment (TSS). This function:

  • Loads the GDT.
  • Sets the code segment register (CS).
  • Loads the TSS to set up the interrupt stack for the system.