blob: 50a52232a8e85f2088eb011f97762b184d079a7f [file] [log] [blame]
Dmitry V. Levin16510512015-11-30 01:46:52 +00001/* Return codes: 1 - ok, 0 - ignore, other - error. */
2static int
3arch_get_scno(struct tcb *tcp)
4{
5 if (upeek(tcp->pid, REG_SYSCALL, &tcp->scno) < 0)
6 return -1;
7 tcp->scno &= 0xffff;
8 return 1;
9}