summaryrefslogtreecommitdiff
path: root/src/sys/include/arch/amd64/gdt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/include/arch/amd64/gdt.h')
-rw-r--r--src/sys/include/arch/amd64/gdt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/include/arch/amd64/gdt.h b/src/sys/include/arch/amd64/gdt.h
index ee52065..0a22b37 100644
--- a/src/sys/include/arch/amd64/gdt.h
+++ b/src/sys/include/arch/amd64/gdt.h
@@ -87,7 +87,7 @@ extern struct gdt_entry g_gdt_data[GDT_ENTRY_COUNT];
extern const struct gdtr g_gdtr;
__always_inline static inline void
-gdt_load(void)
+gdt_load(struct gdtr *gdtr)
{
__ASMV("lgdt %0\n"
"push %1\n" /* Push code segment selector */
@@ -102,7 +102,7 @@ gdt_load(void)
" mov %%ax, %%gs\n"
" mov %%ax, %%ss\n"
:
- : "m" (g_gdtr), "i"(KERNEL_CS), "i"(KERNEL_DS)
+ : "m" (*gdtr), "i"(KERNEL_CS), "i"(KERNEL_DS)
: "rax", "memory"
);
}