powerpc: Use correct ccr bit for syscall error status

The powerpc implementations of syscall_get_error and
syscall_set_return_value should use CCR0:S0 (0x10000000) for testing
and setting syscall error status. Fortunately these APIs don't seem
to be used at the moment.

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by Nathan Lynch and committed by Benjamin Herrenschmidt 409d241b d6a8536a

+3 -3
+3 -3
arch/powerpc/include/asm/syscall.h
··· 30 static inline long syscall_get_error(struct task_struct *task, 31 struct pt_regs *regs) 32 { 33 - return (regs->ccr & 0x1000) ? -regs->gpr[3] : 0; 34 } 35 36 static inline long syscall_get_return_value(struct task_struct *task, ··· 44 int error, long val) 45 { 46 if (error) { 47 - regs->ccr |= 0x1000L; 48 regs->gpr[3] = -error; 49 } else { 50 - regs->ccr &= ~0x1000L; 51 regs->gpr[3] = val; 52 } 53 }
··· 30 static inline long syscall_get_error(struct task_struct *task, 31 struct pt_regs *regs) 32 { 33 + return (regs->ccr & 0x10000000) ? -regs->gpr[3] : 0; 34 } 35 36 static inline long syscall_get_return_value(struct task_struct *task, ··· 44 int error, long val) 45 { 46 if (error) { 47 + regs->ccr |= 0x10000000L; 48 regs->gpr[3] = -error; 49 } else { 50 + regs->ccr &= ~0x10000000L; 51 regs->gpr[3] = val; 52 } 53 }