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.
22 lines
377 B
22 lines
377 B
static int
|
|
arch_set_error(struct tcb *tcp)
|
|
{
|
|
i386_regs.eax = -tcp->u_error;
|
|
#ifdef HAVE_GETREGS_OLD
|
|
return upoke(tcp, 4 * EAX, i386_regs.eax);
|
|
#else
|
|
return set_regs(tcp->pid);
|
|
#endif
|
|
}
|
|
|
|
static int
|
|
arch_set_success(struct tcb *tcp)
|
|
{
|
|
i386_regs.eax = tcp->u_rval;
|
|
#ifdef HAVE_GETREGS_OLD
|
|
return upoke(tcp, 4 * EAX, i386_regs.eax);
|
|
#else
|
|
return set_regs(tcp->pid);
|
|
#endif
|
|
}
|