1 long getrval2(struct tcb * tcp)2 getrval2(struct tcb *tcp) 3 { 4 long val; 5 if (upeek(tcp->pid, 4*(REG_REG0+1), &val) < 0) 6 return -1; 7 return val; 8 } 9