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