Home | History | Annotate | Download | only in i386
      1 static int
      2 arch_set_error(struct tcb *tcp)
      3 {
      4 	i386_regs.eax = -tcp->u_error;
      5 #ifdef HAVE_GETREGS_OLD
      6 	return upoke(tcp->pid, 4 * EAX, i386_regs.eax);
      7 #else
      8 	return set_regs(tcp->pid);
      9 #endif
     10 }
     11 
     12 static int
     13 arch_set_success(struct tcb *tcp)
     14 {
     15 	i386_regs.eax = tcp->u_rval;
     16 #ifdef HAVE_GETREGS_OLD
     17 	return upoke(tcp->pid, 4 * EAX, i386_regs.eax);
     18 #else
     19 	return set_regs(tcp->pid);
     20 #endif
     21 }
     22