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