[][src]Function sunrise_kernel::i386::gdt::init_gdt

pub fn init_gdt()

Initializes the GDT.

Creates a GDT with a flat memory segmentation model. It will create 4 kernel segments (code, data, tls, stack), 5 user segments (code, data, tls region, tls elf, stack), an LDT, and a TSS for the main task.

This function should only be called once. Further calls will be silently ignored.