From fcbce08dd2ccc4792697ad7442639c89fadca62a Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 20 Nov 2022 20:12:39 -0300 Subject: [PATCH] x86_64 syscall: fix comment --- src/arch/x86_64/syscall.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/x86_64/syscall.asm b/src/arch/x86_64/syscall.asm index 38da0f7c..c9fd1c03 100644 --- a/src/arch/x86_64/syscall.asm +++ b/src/arch/x86_64/syscall.asm @@ -151,7 +151,7 @@ asm_syscall_entry: mov es, r11 ; system V C abi expects the third param to be in rcx - ; but the param is in rdx because of the syscall instruction + ; but the param is in r10 because of the syscall instruction mov rcx, r10 @@ -213,7 +213,7 @@ asm_syscall_entry: pop rbp add rsp, 0x30 ; err, rip, cs, rflags, rsp, ss pop rsp ; actual rsp - + cli