Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
gdt.asm
Go to the documentation of this file.
1[bits 64]
2global reloadGDT
3section .text
4reloadGDT:
5 push rdi
6 lea rax, [rel .reload_cs]
7 push rax
8 retfq
9.reload_cs:
10 mov rax, rsi
11 mov ds, rax
12 mov es, rax
13 mov fs, rax
14 mov gs, rax
15 mov ss, rax
16 ret