Home | History | Annotate | Download | only in sh
      1 static int
      2 arch_set_error(struct tcb *tcp)
      3 {
      4 	sh_r0 = -tcp->u_error;
      5 	return upoke(tcp->pid, 4 * REG_REG0, sh_r0);
      6 }
      7 
      8 static int
      9 arch_set_success(struct tcb *tcp)
     10 {
     11 	sh_r0 = tcp->u_rval;
     12 	return upoke(tcp->pid, 4 * REG_REG0, sh_r0);
     13 }
     14