|
PatchworkOS
|
Go to the source code of this file.
Functions | |
| static gdt_t gdt | ALIGNED (PAGE_SIZE) |
| static gdt_segment_t | gdt_segment (gdt_access_t access, gdt_flags_t flags) |
| static gdt_long_system_segment_t | gdt_long_system_segment (gdt_access_t access, gdt_flags_t flags, uint64_t base, uint32_t limit) |
| void | gdt_init (void) |
| Initialize the GDT. | |
| void | gdt_cpu_load (void) |
| Load the GDT on the current CPU. | |
| void | gdt_cpu_tss_load (tss_t *tss) |
Load a TSS into the GDT and load it using the ltr instruction on the current CPU. | |
|
static |
Definition at line 20 of file gdt.c.
References gdt_long_system_segment_t::access, gdt_long_system_segment_t::baseHigh, gdt_long_system_segment_t::baseLow, gdt_long_system_segment_t::baseLowerMiddle, gdt_long_system_segment_t::baseUpperMiddle, gdt_long_system_segment_t::flagsAndLimitHigh, gdt_long_system_segment_t::limitLow, and gdt_long_system_segment_t::reserved.
Referenced by gdt_cpu_tss_load(), and gdt_init().
|
static |
Definition at line 8 of file gdt.c.
References gdt_segment_t::access, gdt_segment_t::baseHigh, gdt_segment_t::baseLow, gdt_segment_t::baseMiddle, gdt_segment_t::flagsAndLimitHigh, and gdt_segment_t::limitLow.
Referenced by gdt_init().