diff options
author | V <v@unfathomable.blue> | 2022-06-19 20:22:44 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-06-19 20:22:44 +0000 |
commit | 82faf4bb2e000a84bbe80ccd27bbc03c778cc7ee (patch) | |
tree | fe2d0ed5891346ee1dc76bd7d7c02dd706bf9c1a | |
parent | 18c9381a89536fac88c4be5e97f94728cc6007d4 (diff) | |
download | unf-legacy-82faf4bb2e000a84bbe80ccd27bbc03c778cc7ee.tar.zst |
ripple/minitrace: fix syscall ABI
The fourth argument is passed in r10, not rcx, which is merely clobbered by syscalls. Change-Id: I0c7210c621f6955deccf21348ce6f495424555cc
-rw-r--r-- | ripple/minitrace/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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], } } } |