From ed3da12bb378d82878fff1d50e5e9e7af3d7265d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 4 Dec 2019 20:38:10 +0100 Subject: More-working syscall logic (parameters work!) --- src/kernel/interrupts/isr.asm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/kernel/interrupts/isr.asm') diff --git a/src/kernel/interrupts/isr.asm b/src/kernel/interrupts/isr.asm index adabac6..00d986a 100644 --- a/src/kernel/interrupts/isr.asm +++ b/src/kernel/interrupts/isr.asm @@ -47,28 +47,33 @@ ISR_NOERRCODE 28 ISR_NOERRCODE 29 ISR_NOERRCODE 30 ISR_NOERRCODE 31 +ISR_NOERRCODE 128 extern fault_handler isr_common_stub: -push ds + pusha + + push ds push es push fs push gs - pusha mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax + cld push esp call fault_handler add esp, 4 - popa pop gs pop fs pop es pop ds + popa + + add esp, 8 iret \ No newline at end of file -- cgit v1.2.3