Skip to main content

init

Function init 

Source
pub fn init()
Expand description

Initialize the GDT with kernel segments, user segments, and TSS.

Prerequisite: tss::init() must be called first.

The segment ordering is critical for SYSRET to work correctly. SYSRET expects: STAR[63:48] points to a base where base+0 = user_code32, base+8 = user_data, base+16 = user_code64.