summaryrefslogtreecommitdiffstats
path: root/arch/x86/gdt/SwitchToGdt.nasm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/gdt/SwitchToGdt.nasm')
-rw-r--r--arch/x86/gdt/SwitchToGdt.nasm4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/gdt/SwitchToGdt.nasm b/arch/x86/gdt/SwitchToGdt.nasm
index 52ebbc7..5d3d612 100644
--- a/arch/x86/gdt/SwitchToGdt.nasm
+++ b/arch/x86/gdt/SwitchToGdt.nasm
@@ -1,4 +1,6 @@
-global SWITCHTOGDT
+BITS 32
+section .text
+global SWITCHTOGDT:function
SWITCHTOGDT:
lgdt [esp + 4]
jmp 0x08:.reloadCS