⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module gdt

Module gdt 

Source

Structs§

Selectors
GDT segment selectors for kernel and user mode.

Constants§

DOUBLE_FAULT_IST_INDEX

Functions§

get_kernel_stack
Read the current kernel stack pointer from the TSS (RSP0).
init
selectors
Returns a reference to the GDT selectors (kernel and user mode).
set_kernel_stack
Update the kernel stack pointer in the TSS (RSP0).