mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
elf loading and userland
This commit is contained in:
@@ -35,6 +35,7 @@ static void reloadgdtr(){
|
||||
gdtr.offset = &arch_getcls()->gdt;
|
||||
gdtr.size = sizeof(gdt_t) - 1;
|
||||
asm("lgdt (%%rax)" : : "a"(&gdtr) : "memory");
|
||||
asm("ltr %%ax" : : "a"(0x48));
|
||||
}
|
||||
|
||||
void gdt_init(){
|
||||
|
||||
Reference in New Issue
Block a user