1 static int arch_set_error(struct tcb * tcp)2arch_set_error(struct tcb *tcp) 3 { 4 sparc_regs.psr |= PSR_C; 5 sparc_regs.u_regs[U_REG_O0] = tcp->u_error; 6 return set_regs(tcp->pid); 7 } 8 9 static int arch_set_success(struct tcb * tcp)10arch_set_success(struct tcb *tcp) 11 { 12 sparc_regs.psr &= ~PSR_C; 13 sparc_regs.u_regs[U_REG_O0] = tcp->u_rval; 14 return set_regs(tcp->pid); 15 } 16