From 0c68162a46ff694b424ded08ba41ed208138ec46 Mon Sep 17 00:00:00 2001 From: Nathan Lynch Date: Fri, 12 Mar 2010 13:16:02 +0000 Subject: [PATCH] --- yaml --- r: 188820 b: refs/heads/master c: 409d241b7bb2cf0278186040ace1c4704fb2a82f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/powerpc/include/asm/syscall.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 96557b38ea0c..c6fc7e4948b1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d6a8536a93a3d14b6e5e3e3a59b9fb2bca6e8df2 +refs/heads/master: 409d241b7bb2cf0278186040ace1c4704fb2a82f diff --git a/trunk/arch/powerpc/include/asm/syscall.h b/trunk/arch/powerpc/include/asm/syscall.h index efa7f0b879f3..23913e902fc3 100644 --- a/trunk/arch/powerpc/include/asm/syscall.h +++ b/trunk/arch/powerpc/include/asm/syscall.h @@ -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, @@ -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; } }