Home | History | Annotate | Download | only in mips
      1 /* Return codes: 1 - ok, 0 - ignore, other - error. */
      2 static int
      3 arch_get_scno(struct tcb *tcp)
      4 {
      5 	tcp->scno = mips_REG_V0;
      6 
      7 	if (!scno_in_range(tcp->scno)) {
      8 		if (mips_REG_A3 == 0 || mips_REG_A3 == (uint64_t) -1) {
      9 			if (debug_flag)
     10 				error_msg("stray syscall exit: v0 = %ld",
     11 					  tcp->scno);
     12 			return 0;
     13 		}
     14 	}
     15 
     16 	return 1;
     17 }
     18