diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-22 21:16:35 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2012-08-01 17:33:16 -0400 |
commit | a3170d2ec25f841bee1b52487693ac1a2f191ba6 (patch) | |
tree | 36b82a346087ef5050ca710ec38f8632dfa9deea /arch | |
parent | 2cad4c1276707ae06f40482bd91af513d23f5a6d (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/um/kernel/skas/syscall.c | 2 | ||||
-rw-r--r-- | arch/x86/um/asm/ptrace.h | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index ccb9a9d283f1..f19ca6152460 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c | |||
@@ -193,7 +193,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp, | |||
193 | if (current->thread.forking) { | 193 | if (current->thread.forking) { |
194 | memcpy(&p->thread.regs.regs, ®s->regs, | 194 | memcpy(&p->thread.regs.regs, ®s->regs, |
195 | sizeof(p->thread.regs.regs)); | 195 | sizeof(p->thread.regs.regs)); |
196 | UPT_SET_SYSCALL_RETURN(&p->thread.regs.regs, 0); | 196 | PT_REGS_SET_SYSCALL_RETURN(&p->thread.regs, 0); |
197 | if (sp != 0) | 197 | if (sp != 0) |
198 | REGS_SP(p->thread.regs.regs.gp) = sp; | 198 | REGS_SP(p->thread.regs.regs.gp) = sp; |
199 | 199 | ||
diff --git a/arch/um/kernel/skas/syscall.c b/arch/um/kernel/skas/syscall.c index 05fbeb480e0b..800551a29dbf 100644 --- a/arch/um/kernel/skas/syscall.c +++ b/arch/um/kernel/skas/syscall.c | |||
@@ -34,7 +34,7 @@ void handle_syscall(struct uml_pt_regs *r) | |||
34 | result = -ENOSYS; | 34 | result = -ENOSYS; |
35 | else result = EXECUTE_SYSCALL(syscall, regs); | 35 | else result = EXECUTE_SYSCALL(syscall, regs); |
36 | 36 | ||
37 | UPT_SET_SYSCALL_RETURN(r, result); | 37 | PT_REGS_SET_SYSCALL_RETURN(regs, result); |
38 | 38 | ||
39 | syscall_trace(r, 1); | 39 | syscall_trace(r, 1); |
40 | } | 40 | } |
diff --git a/arch/x86/um/asm/ptrace.h b/arch/x86/um/asm/ptrace.h index 950dfb7b8417..e72cd0df5ba3 100644 --- a/arch/x86/um/asm/ptrace.h +++ b/arch/x86/um/asm/ptrace.h | |||
@@ -30,10 +30,10 @@ | |||
30 | #define profile_pc(regs) PT_REGS_IP(regs) | 30 | #define profile_pc(regs) PT_REGS_IP(regs) |
31 | 31 | ||
32 | #define UPT_RESTART_SYSCALL(r) (UPT_IP(r) -= 2) | 32 | #define UPT_RESTART_SYSCALL(r) (UPT_IP(r) -= 2) |
33 | #define UPT_SET_SYSCALL_RETURN(r, res) (UPT_AX(r) = (res)) | 33 | #define PT_REGS_SET_SYSCALL_RETURN(r, res) (PT_REGS_AX(r) = (res)) |
34 | 34 | ||
35 | static inline long regs_return_value(struct uml_pt_regs *regs) | 35 | static inline long regs_return_value(struct pt_regs *regs) |
36 | { | 36 | { |
37 | return UPT_AX(regs); | 37 | return PT_REGS_AX(regs); |
38 | } | 38 | } |
39 | #endif /* __UM_X86_PTRACE_H */ | 39 | #endif /* __UM_X86_PTRACE_H */ |