Fix buggy __syscall6() again.The last argument is stored 8(%rsp),not

(%rsp)
This commit is contained in:
Ziyao 2022-04-15 09:21:13 +08:00
parent ea670ff2d8
commit e17817664e
1 changed files with 19 additions and 18 deletions

View File

@ -1,6 +1,7 @@
/*
musl-tcc
File:/src/internal/x86_64/syscall.S
Date:2022.04.15
Copyright(c) 2022 ziyao.
*/
@ -45,7 +46,7 @@ __syscall6:
movq %rcx, %rdx
movq %r8, %r10
movq %r9, %r8
movq (%rsp), %r9 // The last argument is stored on
movq 8(%rsp), %r9 // The last argument is stored on
// the stack
// But do NOT mess up the stack
syscall