From f46ab8ca2050ee77edf6e6b979875426bdaf29dc Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 13 Mar 2024 09:58:22 -0400 Subject: fix incorrect tss rsp assignment --- arch/x86_64/loadgdt.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'arch/x86_64/loadgdt.S') diff --git a/arch/x86_64/loadgdt.S b/arch/x86_64/loadgdt.S index e183850..a293bae 100644 --- a/arch/x86_64/loadgdt.S +++ b/arch/x86_64/loadgdt.S @@ -6,7 +6,7 @@ x86_64_lgdt: pushq $0x8 leaq .reload_cs, %rax pushq %rax - retfq + lretq .reload_cs: movw $0x10, %ax movw %ax, %ds @@ -15,6 +15,7 @@ x86_64_lgdt: movw %ax, %gs movw %ax, %ss retq +.size x86_64_lgdt, . - x86_64_lgdt .global x86_64_flush_tss .type x86_64_flush_tss @function @@ -22,3 +23,4 @@ x86_64_flush_tss: movw $0x30, %ax ltr %ax retq +.size x86_64_flush_tss, . - x86_64_flush_tss -- cgit v1.2.1