next up previous contents index
Next: 13.7.4 base_idt: default interrupt Up: (X86) Base Environment: Segmentation Previous: 13.7.2 base_gdt_init: initialize the

13.7.3 base_gdt_load: load the base GDT into the CPU

   

SYNOPSIS

void base_gdt_load(void); void i16_base_gdt_load(void);

DESCRIPTION

This function loads the base GDT into the processor's GDTR, and then reinitializes all segment registers from the descriptors in the newly loaded GDT. It returns with the CS segment set to KERNEL_CS (the default kernel code segment; see Section 13.7.1 for details), DS, ES, and SS set to KERNEL_DS (the default kernel data segment), and FS and GS set to 0.

DEPENDENCIES

kvtolin
13.6.2
base_gdt
13.7.1



Utah Flux Research Group