MOS Source Code
|
#include "mos/x86/descriptors/descriptors.h"
#include <mos/platform/platform.h>
#include <mos/syslog/printk.h>
#include <mos/x86/x86_platform.h>
#include <mos_string.h>
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) | |
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.c.
enum gdt_ring_t |
Enumerator | |
---|---|
GDT_RING_KERNEL | |
GDT_RING_1 | |
GDT_RING_2 | |
GDT_RING_USER |
Definition at line 18 of file descriptors.c.
enum gdt_gran_t |
Enumerator | |
---|---|
GDT_GRAN_BYTE | |
GDT_GRAN_PAGE |
Definition at line 26 of file descriptors.c.
typeof | ( | x86_cpu_descriptor | ) |
Definition at line 10 of file descriptors.c.
|
static |
Definition at line 32 of file descriptors.c.
Referenced by x86_init_percpu_gdt().
Definition at line 59 of file descriptors.c.
Referenced by platform_ap_entry(), and platform_startup_early().
Definition at line 86 of file descriptors.c.
Referenced by platform_ap_entry(), and platform_startup_early().