From adfb2c00592e08815a546548f3e87809a645696c Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 6 Mar 2021 17:51:05 +0200 Subject: scheduler: fix task switching --- src/idt/stubs.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/idt') diff --git a/src/idt/stubs.S b/src/idt/stubs.S index 4f1440d..d4fb56f 100644 --- a/src/idt/stubs.S +++ b/src/idt/stubs.S @@ -82,13 +82,14 @@ exception_common: iret interrupt_common: - pusha + pushal push %esp call handle_interrupt - add $4, %esp + #add $4, %esp + mov %eax, %esp - popa + popal /* remove error code and irq from stack */ add $8, %esp -- cgit v1.2.1