1 static int arch_set_error(struct tcb * tcp)2arch_set_error(struct tcb *tcp) 3 { 4 nios2_regs.regs[7] = 1; 5 nios2_regs.regs[2] = -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 nios2_regs.regs[7] = 0; 13 nios2_regs.regs[2] = tcp->u_rval; 14 return set_regs(tcp->pid); 15 } 16