From 458978e7b8a6d50566fc8b68558f76f6b0465c52 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 15 Sep 2023 00:29:11 +0200 Subject: kern: fix GDT order for 64bit sysret --- src/kernel/arch/amd64/boot64.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/arch/amd64/boot64.s') diff --git a/src/kernel/arch/amd64/boot64.s b/src/kernel/arch/amd64/boot64.s index af05ffe..9bd9f0c 100644 --- a/src/kernel/arch/amd64/boot64.s +++ b/src/kernel/arch/amd64/boot64.s @@ -1,7 +1,7 @@ .global boot64 boot64: lgdt (lgdt_arg) // try reloading gdt again - mov $(5 << 3 | 3), %ax // SEG_TSS + mov $(6 << 3 | 3), %ax // SEG_TSS ltr %ax push %rdi // preserve multiboot struct -- cgit v1.2.3