aboutsummaryrefslogtreecommitdiff
path: root/linux/s390/get_scno.c
blob: 2661795d9dad5798aad48cb755a848f53b2cf562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef ARCH_REGSET
# define ARCH_REGSET s390_regset
#endif

/* Return codes: 1 - ok, 0 - ignore, other - error. */
static int
arch_get_scno(struct tcb *tcp)
{
	tcp->scno = ARCH_REGSET.gprs[2] ?
		    ARCH_REGSET.gprs[2] : ARCH_REGSET.gprs[1];
	return 1;
}