Home | History | Annotate | Download | only in nios2
      1 static int
      2 arch_set_error(struct tcb *tcp)
      3 {
      4 	nios2_regs.regs[7] = 1;
      5 	nios2_regs.regs[2] = -tcp->u_error;
      6 	return set_regs(tcp->pid);
      7 }
      8 
      9 static int
     10 arch_set_success(struct tcb *tcp)
     11 {
     12 	nios2_regs.regs[7] = 0;
     13 	nios2_regs.regs[2] = tcp->u_rval;
     14 	return set_regs(tcp->pid);
     15 }
     16