![]() |
MOS Source Code
|
#include "mos/x86/descriptors/descriptors.hpp"#include <mos/platform/platform.hpp>#include <mos/syslog/printk.hpp>#include <mos/x86/x86_platform.hpp>#include <mos_string.hpp>Go to the source code of this file.
Enumerations | |
| enum | gdt_entry_type_t { GDT_ENTRY_CODE , GDT_ENTRY_DATA } |
| enum | gdt_ring_t { GDT_RING_KERNEL = 0 , GDT_RING_1 = 1 , GDT_RING_2 = 2 , GDT_RING_USER = 3 } |
| enum | gdt_gran_t { GDT_GRAN_BYTE = 0 , GDT_GRAN_PAGE = 1 } |
Functions | |
| typeof (x86_cpu_descriptor) x86_cpu_descriptor | |
| static gdt_entry_t * | gdt_set_entry (gdt_entry_t *entry, ptr_t base, u32 limit, gdt_entry_type_t entry_type, gdt_ring_t dpl, gdt_gran_t gran) |
| void | x86_init_percpu_gdt () |
| void | x86_init_percpu_tss () |
| enum gdt_entry_type_t |
| Enumerator | |
|---|---|
| GDT_ENTRY_CODE | |
| GDT_ENTRY_DATA | |
Definition at line 12 of file descriptors.cpp.
| enum gdt_ring_t |
| Enumerator | |
|---|---|
| GDT_RING_KERNEL | |
| GDT_RING_1 | |
| GDT_RING_2 | |
| GDT_RING_USER | |
Definition at line 18 of file descriptors.cpp.
| enum gdt_gran_t |
| Enumerator | |
|---|---|
| GDT_GRAN_BYTE | |
| GDT_GRAN_PAGE | |
Definition at line 26 of file descriptors.cpp.
| typeof | ( | x86_cpu_descriptor | ) |
|
static |
Definition at line 32 of file descriptors.cpp.
Referenced by x86_init_percpu_gdt().
Definition at line 59 of file descriptors.cpp.
Referenced by platform_ap_entry(), and platform_startup_early().
Definition at line 86 of file descriptors.cpp.
Referenced by platform_ap_entry(), and platform_startup_early().