Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321178
b: refs/heads/master
c: a3170d2
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Richard Weinberger committed Aug 1, 2012
1 parent 4c28c7a commit c9fcbbc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2cad4c1276707ae06f40482bd91af513d23f5a6d
refs/heads/master: a3170d2ec25f841bee1b52487693ac1a2f191ba6
2 changes: 1 addition & 1 deletion trunk/arch/um/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/kernel/skas/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
6 changes: 3 additions & 3 deletions trunk/arch/x86/um/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit c9fcbbc

Please sign in to comment.