From 82faf4bb2e000a84bbe80ccd27bbc03c778cc7ee Mon Sep 17 00:00:00 2001 From: V Date: Sun, 19 Jun 2022 20:22:44 +0000 Subject: ripple/minitrace: fix syscall ABI The fourth argument is passed in r10, not rcx, which is merely clobbered by syscalls. Change-Id: I0c7210c621f6955deccf21348ce6f495424555cc --- ripple/minitrace/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ripple') diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index 3f0041f..ee09c99 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -104,7 +104,7 @@ impl SyscallEntry { fn from_regs(regs: libc::user_regs_struct) -> SyscallEntry { SyscallEntry { number: regs.orig_rax, - args: [regs.rdi, regs.rsi, regs.rdx, regs.rcx, regs.r8, regs.r9], + args: [regs.rdi, regs.rsi, regs.rdx, regs.r10, regs.r8, regs.r9], } } } -- cgit 1.4.1