From 051ac9f1941e8bc6ad87beccb61a2d53111ba8ea Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sat, 2 Mar 2024 21:49:40 +0100 Subject: 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. --- kernel/cpu/int_syscall.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kernel/cpu') 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] -- cgit v1.2.3