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