OurOS
0.1
Operating System built by McGill Students
Loading...
Searching...
No Matches
Functions
|
Variables
gdt.c File Reference
#include "
gdt.h
"
#include "
print.h
"
Functions
void
cpu_gdt_bind
()
void
cpu_gdt_describe
(char *buf,
uint64_t
bufsz)
Variables
struct
cpu_gdt_entry
gdt
[
GDT_SEGMENTS
]
Function Documentation
◆
cpu_gdt_bind()
void cpu_gdt_bind
(
void
)
◆
cpu_gdt_describe()
void cpu_gdt_describe
(
char *
buf
,
uint64_t
bufsz
)
Variable Documentation
◆
gdt
struct
cpu_gdt_entry
gdt[
GDT_SEGMENTS
]
Initial value:
= {
GDT_ENTRY_CREATE
(0, 0, 0, 0),
GDT_ENTRY_CREATE
(
GDT_KCODE_LIMIT
,
GDT_KCODE_BASE
,
GDT_KCODE_MISC_LOW
,
GDT_KCODE_MISC_HIGH
),
GDT_ENTRY_CREATE
(
GDT_KDATA_LIMIT
,
GDT_KDATA_BASE
,
GDT_KDATA_MISC_LOW
,
GDT_KDATA_MISC_HIGH
)
}
GDT_KDATA_MISC_HIGH
#define GDT_KDATA_MISC_HIGH
Definition
gdt.h:45
GDT_KCODE_MISC_HIGH
#define GDT_KCODE_MISC_HIGH
Definition
gdt.h:35
GDT_ENTRY_CREATE
#define GDT_ENTRY_CREATE(lim, base, low, high)
Definition
gdt.h:48
GDT_KCODE_MISC_LOW
#define GDT_KCODE_MISC_LOW
Definition
gdt.h:34
GDT_KDATA_MISC_LOW
#define GDT_KDATA_MISC_LOW
Definition
gdt.h:44
GDT_KDATA_LIMIT
#define GDT_KDATA_LIMIT
Definition
gdt.h:42
GDT_KCODE_LIMIT
#define GDT_KCODE_LIMIT
Definition
gdt.h:32
GDT_KCODE_BASE
#define GDT_KCODE_BASE
Definition
gdt.h:33
GDT_KDATA_BASE
#define GDT_KDATA_BASE
Definition
gdt.h:43
src
kernel
cpu
gdt.c
Generated by
1.9.8