android_mt6572_jiabo/external/strace/linux/sh64/get_scno.c
2025-09-05 16:56:03 +08:00

9 lines
198 B
C

/* Return codes: 1 - ok, 0 - ignore, other - error. */
static int
arch_get_scno(struct tcb *tcp)
{
if (upeek(tcp->pid, REG_SYSCALL, &tcp->scno) < 0)
return -1;
tcp->scno &= 0xffff;
return 1;
}