From 84332707f1df86c25c1f94883044c5e8fe2e20a3 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Tue, 22 Mar 2022 13:43:54 -0500 Subject: arch: i386: refactor the system call API The x86 system call/interrupt handlers should be refactored to be more readable. Signed-off-by: Danny Holman --- arch/i386/boot/isr.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'arch/i386/boot') diff --git a/arch/i386/boot/isr.s b/arch/i386/boot/isr.s index 76afa9f..893dd1f 100644 --- a/arch/i386/boot/isr.s +++ b/arch/i386/boot/isr.s @@ -51,8 +51,7 @@ isr_frame_asm: movl %cr4, %eax pushl %eax - lea -8(%esp), %edi - pushl %edi + pushl %esp call interrupt_handler popl %eax @@ -71,7 +70,7 @@ isr_frame_asm: popl %ebx popl %eax - addl $4, %esp + addl $20, %esp iret isr_no_err_stub 0 -- cgit v1.2.3