1 static int arch_set_error(struct tcb * tcp)2arch_set_error(struct tcb *tcp) 3 { 4 ia64_regs.gr[8] = tcp->u_error; 5 ia64_regs.gr[10] = -1; 6 7 return set_regs(tcp->pid); 8 } 9 10 static int arch_set_success(struct tcb * tcp)11arch_set_success(struct tcb *tcp) 12 { 13 ia64_regs.gr[8] = tcp->u_rval; 14 ia64_regs.gr[10] = 0; 15 16 return set_regs(tcp->pid); 17 } 18