um: switch UPT_SET_RETURN_VALUE and regs_return_value to pt_regs

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
Al Viro
2012-05-22 21:16:35 -04:00
committed by Richard Weinberger
parent 2cad4c1276
commit a3170d2ec2
3 changed files with 5 additions and 5 deletions

View File

@@ -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 */