summaryrefslogtreecommitdiff
path: root/arch/i386/boot
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2022-03-22 13:43:54 -0500
committerDanny Holman <dholman@gymli.org>2022-03-22 13:43:54 -0500
commit84332707f1df86c25c1f94883044c5e8fe2e20a3 (patch)
tree8f047d248c89899b9b45575f63feddf360854946 /arch/i386/boot
parent84fe944adc002bc6e8844e9ac9c292b9d7dd3f92 (diff)
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 <dholman@gymli.org>
Diffstat (limited to 'arch/i386/boot')
-rw-r--r--arch/i386/boot/isr.s5
1 files changed, 2 insertions, 3 deletions
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