Skip to content

Commit

Permalink
Merge branch 'master' of https://gitee.com/rtoax/ulpatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Rtoax committed Jul 13, 2024
2 parents 132d56a + a8c9dfd commit 225b49f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -2016,8 +2016,8 @@ int task_syscall(struct task_struct *task, int nr, unsigned long arg1,
#if defined(__x86_64__)
ret = ptrace(PTRACE_GETREGS, task->pid, NULL, &old_regs);
#elif defined(__aarch64__)
ret = ptrace(PTRACE_GETREGSET, task->pid, (void*)NT_PRSTATUS,
(void*)&orig_regs_iov);
ret = ptrace(PTRACE_GETREGSET, task->pid, (void *)NT_PRSTATUS,
(void *)&orig_regs_iov);
#else
# error "Unsupport architecture"
#endif
Expand Down Expand Up @@ -2061,8 +2061,8 @@ int task_syscall(struct task_struct *task, int nr, unsigned long arg1,
#if defined(__x86_64__)
ret = ptrace(PTRACE_GETREGS, task->pid, NULL, &regs);
#elif defined(__aarch64__)
ret = ptrace(PTRACE_GETREGSET, task->pid, (void*)NT_PRSTATUS,
(void*)&regs_iov);
ret = ptrace(PTRACE_GETREGSET, task->pid, (void *)NT_PRSTATUS,
(void *)&regs_iov);
#else
# error "Unsupport architecture"
#endif
Expand Down

0 comments on commit 225b49f

Please sign in to comment.