From 2dadbfc899df4179ca70c4ea04f74a5e190c2ae7 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Fri, 26 Sep 2025 13:17:41 -0400 Subject: fix usermode interrupts. add ability to define custom interrupt handlers --- arch/x86_64/lgdt.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/x86_64/lgdt.s') diff --git a/arch/x86_64/lgdt.s b/arch/x86_64/lgdt.s index 55e37b5..ccafe42 100644 --- a/arch/x86_64/lgdt.s +++ b/arch/x86_64/lgdt.s @@ -4,9 +4,9 @@ gdt_load: lgdt (%rdi) .reload_segments: pushq $0x8 - leaq .reload_cs, %rax + leaq .reload_cs(%rip), %rax pushq %rax - lretq + retfq .reload_cs: movw $0x10, %ax movw %ax, %ds -- cgit v1.2.1