Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188820
b: refs/heads/master
c: 409d241
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Lynch authored and Benjamin Herrenschmidt committed Mar 19, 2010
1 parent 5004d9f commit 0c68162
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: d6a8536a93a3d14b6e5e3e3a59b9fb2bca6e8df2
refs/heads/master: 409d241b7bb2cf0278186040ace1c4704fb2a82f
6 changes: 3 additions & 3 deletions trunk/arch/powerpc/include/asm/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static inline void syscall_rollback(struct task_struct *task,
static inline long syscall_get_error(struct task_struct *task,
struct pt_regs *regs)
{
return (regs->ccr & 0x1000) ? -regs->gpr[3] : 0;
return (regs->ccr & 0x10000000) ? -regs->gpr[3] : 0;
}

static inline long syscall_get_return_value(struct task_struct *task,
Expand All @@ -44,10 +44,10 @@ static inline void syscall_set_return_value(struct task_struct *task,
int error, long val)
{
if (error) {
regs->ccr |= 0x1000L;
regs->ccr |= 0x10000000L;
regs->gpr[3] = -error;
} else {
regs->ccr &= ~0x1000L;
regs->ccr &= ~0x10000000L;
regs->gpr[3] = val;
}
}
Expand Down

0 comments on commit 0c68162

Please sign in to comment.