aboutsummaryrefslogtreecommitdiff
path: root/linux/ia64/set_error.c
blob: 693449973f39f87ef5a1b6bccca2197cd0808e7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
static int
arch_set_error(struct tcb *tcp)
{
	ia64_regs.gr[8] = tcp->u_error;
	ia64_regs.gr[10] = -1;

	return set_regs(tcp->pid);
}

static int
arch_set_success(struct tcb *tcp)
{
	ia64_regs.gr[8] = tcp->u_rval;
	ia64_regs.gr[10] = 0;

	return set_regs(tcp->pid);
}