summaryrefslogtreecommitdiff
path: root/linux/bfin/set_error.c
blob: 002d904d3f07d214609c77a1822caecac70d9202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
static int
arch_set_error(struct tcb *tcp)
{
	bfin_r0 = -tcp->u_error;
	return upoke(tcp, PT_R0, bfin_r0);
}

static int
arch_set_success(struct tcb *tcp)
{
	bfin_r0 = tcp->u_rval;
	return upoke(tcp, PT_R0, bfin_r0);
}