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

10.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 10.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
10.6.2
base_gdt
10.7.1



University of Utah Flux Research Group