xref: /aosp_15_r20/external/strace/linux/microblaze/get_scno.c (revision cf84ac9a129d8ea9952db616b4e9b904c4bdde56)
1 /* Return codes: 1 - ok, 0 - ignore, other - error. */
2 static int
arch_get_scno(struct tcb * tcp)3 arch_get_scno(struct tcb *tcp)
4 {
5 	return upeek(tcp, 0, &tcp->scno) < 0 ? -1 : 1;
6 }
7