summaryrefslogtreecommitdiff
path: root/linux/alpha/set_error.c
blob: 78a247e5ed835b68189151c423b32575a3cfa6bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
static int
arch_set_error(struct tcb *tcp)
{
	return upoke(tcp, REG_A3, (alpha_a3 = 1))
	       || upoke(tcp, REG_R0, (alpha_r0 = tcp->u_error));
}

static int
arch_set_success(struct tcb *tcp)
{
	return upoke(tcp, REG_A3, (alpha_a3 = 0))
	       || upoke(tcp, REG_R0, (alpha_r0 = tcp->u_rval));
}