um: switch UPT_SET_RETURN_VALUE and regs_return_value to pt_regs
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 23 May 2012 01:16:35 +0000 (21:16 -0400)
committerRichard Weinberger <richard@nod.at>
Wed, 1 Aug 2012 21:33:16 +0000 (23:33 +0200)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/process.c
arch/um/kernel/skas/syscall.c
arch/x86/um/asm/ptrace.h

index ccb9a9d283f165760b20fec6bb3b821f814b0a37..f19ca6152460c61a927794359d6ed7e131e531a0 100644 (file)
@@ -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;
 
index 05fbeb480e0b554f313185ef97a6482c61b4fb72..800551a29dbf7281e5bb432f7d77451d1db42212 100644 (file)
@@ -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);
 }
index 950dfb7b84173aed904594624f9c33bda6380ebf..e72cd0df5ba381436b8158ebad5ee0f758ba8eab 100644 (file)
 #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 */