MOS Source Code
Loading...
Searching...
No Matches
descriptors.c File Reference
+ Include dependency graph for descriptors.c:

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_tgdt_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 ()
 

Enumeration Type Documentation

◆ gdt_entry_type_t

Enumerator
GDT_ENTRY_CODE 
GDT_ENTRY_DATA 

Definition at line 12 of file descriptors.c.

◆ gdt_ring_t

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.

◆ gdt_gran_t

enum gdt_gran_t
Enumerator
GDT_GRAN_BYTE 
GDT_GRAN_PAGE 

Definition at line 26 of file descriptors.c.

Function Documentation

◆ typeof()

typeof ( x86_cpu_descriptor )

Definition at line 10 of file descriptors.c.

◆ gdt_set_entry()

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 )
static

Definition at line 32 of file descriptors.c.

Referenced by x86_init_percpu_gdt().

◆ x86_init_percpu_gdt()

void x86_init_percpu_gdt ( void )

Definition at line 59 of file descriptors.c.

Referenced by platform_ap_entry(), and platform_startup_early().

+ Here is the call graph for this function:

◆ x86_init_percpu_tss()

void x86_init_percpu_tss ( void )

Definition at line 86 of file descriptors.c.

Referenced by platform_ap_entry(), and platform_startup_early().

+ Here is the call graph for this function: