C++程序  |  14行  |  243 B

static int
arch_set_error(struct tcb *tcp)
{
	cris_r10 = -tcp->u_error;
	return upoke(tcp->pid, 4 * PT_R10, cris_r10);
}

static int
arch_set_success(struct tcb *tcp)
{
	cris_r10 = tcp->u_rval;
	return upoke(tcp->pid, 4 * PT_R10, cris_r10);
}