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.
18 lines
288 B
18 lines
288 B
4 months ago
|
#ifndef ARCH_REGSET
|
||
|
# define ARCH_REGSET s390_regset
|
||
|
#endif
|
||
|
|
||
|
static int
|
||
|
arch_set_error(struct tcb *tcp)
|
||
|
{
|
||
|
ARCH_REGSET.gprs[2] = -tcp->u_error;
|
||
|
return set_regs(tcp->pid);
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
arch_set_success(struct tcb *tcp)
|
||
|
{
|
||
|
ARCH_REGSET.gprs[2] = tcp->u_rval;
|
||
|
return set_regs(tcp->pid);
|
||
|
}
|