summaryrefslogtreecommitdiff
path: root/kernel/cpu
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-28 11:56:18 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-28 11:56:18 -0400
commit3dfffb0b8d89d22bd914daa97339d6a8161c4fdb (patch)
treecd3b79adf009f5d1f4e7642e0425c21d0bd270f2 /kernel/cpu
parentanti aliasing :3 (diff)
downloadcomus-3dfffb0b8d89d22bd914daa97339d6a8161c4fdb.tar.gz
comus-3dfffb0b8d89d22bd914daa97339d6a8161c4fdb.tar.bz2
comus-3dfffb0b8d89d22bd914daa97339d6a8161c4fdb.zip
fix segments
Diffstat (limited to 'kernel/cpu')
-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