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.
16 lines
295 B
16 lines
295 B
4 months ago
|
static int
|
||
|
arch_set_error(struct tcb *tcp)
|
||
|
{
|
||
|
sparc_regs.psr |= PSR_C;
|
||
|
sparc_regs.u_regs[U_REG_O0] = tcp->u_error;
|
||
|
return set_regs(tcp->pid);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
arch_set_success(struct tcb *tcp)
|
||
|
{
|
||
|
sparc_regs.psr &= ~PSR_C;
|
||
|
sparc_regs.u_regs[U_REG_O0] = tcp->u_rval;
|
||
|
return set_regs(tcp->pid);
|
||
|
}
|