diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-09-26 13:17:41 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-09-26 13:17:41 -0400 |
commit | 2dadbfc899df4179ca70c4ea04f74a5e190c2ae7 (patch) | |
tree | b166aaa9af42406cd07fbaf150f93aefeb2fbe33 /arch/x86_64/lgdt.s | |
parent | ddc4fbc15223e362896a9f42beca73f05f48e664 (diff) | |
download | jove-kernel-2dadbfc899df4179ca70c4ea04f74a5e190c2ae7.tar.gz jove-kernel-2dadbfc899df4179ca70c4ea04f74a5e190c2ae7.tar.bz2 jove-kernel-2dadbfc899df4179ca70c4ea04f74a5e190c2ae7.zip |
fix usermode interrupts. add ability to define custom interrupt handlersmain
Diffstat (limited to 'arch/x86_64/lgdt.s')
-rw-r--r-- | arch/x86_64/lgdt.s | 4 |
1 files changed, 2 insertions, 2 deletions
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 |