summaryrefslogtreecommitdiff
path: root/kernel/cpu
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-03-02 21:49:40 +0100
committerAnton Kling <anton@kling.gg>2024-03-02 21:49:40 +0100
commit051ac9f1941e8bc6ad87beccb61a2d53111ba8ea (patch)
treec45811bd05daace68702130611c8f4a1f5ca01d4 /kernel/cpu
parente6c8f7298b40757a410d9df6319824c4f0d70351 (diff)
Kernel: Fix incorrect hardcoded value.
It should be 20 as there are 5 addresses pushed onto the stack. Not hex 20 which is sligthly more and as a result caused random crashes.
Diffstat (limited to 'kernel/cpu')
-rw-r--r--kernel/cpu/int_syscall.s3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/cpu/int_syscall.s b/kernel/cpu/int_syscall.s
index bda7312..5fff75b 100644
--- a/kernel/cpu/int_syscall.s
+++ b/kernel/cpu/int_syscall.s
@@ -23,8 +23,9 @@ mov edi,DWORD PTR [edx+0x1c]
push edi
mov edi,DWORD PTR [edx+0x14]
push edi
+
call eax
-add esp,0x20
+add esp,20
mov edx,DWORD PTR [ebp+0x8] # reg_t*
mov DWORD PTR [edx+0x20],eax
lea esp,[ebp-0xc]