summaryrefslogtreecommitdiff
path: root/kernel/cpu
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--kernel/cpu/idt.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/cpu/idt.S b/kernel/cpu/idt.S
index 05f80c7..b3a8454 100644
--- a/kernel/cpu/idt.S
+++ b/kernel/cpu/idt.S
@@ -51,12 +51,12 @@
# segments
popw %ax
movw %ax, %gs
+ popw %ax
movw %ax, %fs
popw %ax
movw %ax, %es
popw %ax
movw %ax, %ds
- popw %ax
# regs
popq %r15
@@ -79,6 +79,7 @@
.macro ISRSave
PUSHALL
cld
+
movq %rsp, %rdi
callq isr_save
.endm