Commit a3170d2e authored by Al Viro's avatar Al Viro Committed by Richard Weinberger

um: switch UPT_SET_RETURN_VALUE and regs_return_value to pt_regs

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 2cad4c12
......@@ -193,7 +193,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
if (current->thread.forking) {
memcpy(&p->thread.regs.regs, &regs->regs,
sizeof(p->thread.regs.regs));
UPT_SET_SYSCALL_RETURN(&p->thread.regs.regs, 0);
PT_REGS_SET_SYSCALL_RETURN(&p->thread.regs, 0);
if (sp != 0)
REGS_SP(p->thread.regs.regs.gp) = sp;
......
......@@ -34,7 +34,7 @@ void handle_syscall(struct uml_pt_regs *r)
result = -ENOSYS;
else result = EXECUTE_SYSCALL(syscall, regs);
UPT_SET_SYSCALL_RETURN(r, result);
PT_REGS_SET_SYSCALL_RETURN(regs, result);
syscall_trace(r, 1);
}
......@@ -30,10 +30,10 @@
#define profile_pc(regs) PT_REGS_IP(regs)
#define UPT_RESTART_SYSCALL(r) (UPT_IP(r) -= 2)
#define UPT_SET_SYSCALL_RETURN(r, res) (UPT_AX(r) = (res))
#define PT_REGS_SET_SYSCALL_RETURN(r, res) (PT_REGS_AX(r) = (res))
static inline long regs_return_value(struct uml_pt_regs *regs)
static inline long regs_return_value(struct pt_regs *regs)
{
return UPT_AX(regs);
return PT_REGS_AX(regs);
}
#endif /* __UM_X86_PTRACE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment