You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
298 B
14 lines
298 B
4 months ago
|
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));
|
||
|
}
|