blob: 4959e1539d919fb4d1707a7d12567c89321202ab [file] [log] [blame]
Dmitry V. Levind70d1c42015-03-22 22:13:55 +00001if (upeek(tcp->pid, REG_A3, &alpha_a3) < 0)
2 return -1;
3if (upeek(tcp->pid, REG_R0, &scno) < 0)
4 return -1;
5
6/*
7 * Do some sanity checks to figure out if it's
8 * really a syscall entry
9 */
10if (!SCNO_IN_RANGE(scno)) {
11 if (alpha_a3 == 0 || alpha_a3 == -1) {
12 if (debug_flag)
13 fprintf(stderr, "stray syscall exit: r0 = %ld\n", scno);
14 return 0;
15 }
16}