aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/gdt.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-29 23:59:48 +0200
committerMarvin Borner2021-04-29 23:59:48 +0200
commit3a3d50d7eb0f4fdbb9beaf16bacfa98689cc448c (patch)
treed837ed9ed9470a20b66b28b6083d30865d7e6016 /kernel/drivers/gdt.c
parentf8e47b6b0c0578c52d82c0e243620361b87a4abe (diff)
Alright!
Diffstat (limited to 'kernel/drivers/gdt.c')
-rw-r--r--kernel/drivers/gdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/gdt.c b/kernel/drivers/gdt.c
index 73db111..66a9086 100644
--- a/kernel/drivers/gdt.c
+++ b/kernel/drivers/gdt.c
@@ -56,7 +56,7 @@ void tss_set_stack(u32 ss, u32 esp)
tss.ss0 = ss;
}
-CLEAR void gdt_install(void)
+CLEAR void gdt_install(u32 esp)
{
// Set GDT pointer and limit
gp.limit = (sizeof(struct gdt_entry) * 6) - 1;
@@ -78,7 +78,7 @@ CLEAR void gdt_install(void)
gdt_set_gate(4, 0, 0xffffffff, 0xf2, 0xcf);
// Write TSS
- tss_write(5, GDT_SUPER_DATA_OFFSET, STACK_START);
+ tss_write(5, GDT_SUPER_DATA_OFFSET, esp);
// Remove old GDT and install the new changes!
gdt_flush();