aboutsummaryrefslogtreecommitdiff
path: root/src/idt/stubs.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/idt/stubs.S')
-rw-r--r--src/idt/stubs.S7
1 files changed, 4 insertions, 3 deletions
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