Go to the source code of this file.
|
void | GdtSetGate (int num, u32 base, u32 limit, u8 access, u8 gran) |
| Set a GDT entry (descriptor)
|
void | GdtInstall () |
| Initialize and load the Global Descriptor Table (GDT)
|
◆ GdtInstall()
Initialize and load the Global Descriptor Table (GDT)
- Sets up three GDT entries:
- Null segment
- Code segment (executable, readable)
- Data segment (read/write)
- Loads the GDT register with the new table
Definition at line 56 of file gdt.c.
◆ GdtSetGate()
void GdtSetGate |
( |
int | num, |
|
|
u32 | base, |
|
|
u32 | limit, |
|
|
u8 | access, |
|
|
u8 | gran ) |
Set a GDT entry (descriptor)
- Parameters
-
num | Index of the GDT entry to set |
base | Base address for the segment |
limit | Limit of the segment |
access | Access flags (e.g., executable, readable) |
gran | Granularity and size flags |
Definition at line 35 of file gdt.c.
◆ gdt
Global Descriptor Table entries
Definition at line 21 of file gdt.c.
◆ gp
GDT pointer structure
Definition at line 24 of file gdt.c.