128413b850
* linux/aarch64/get_scno.c (arch_get_scno): Remove shuffle_scno call. * linux/arm/get_scno.c (arch_get_scno): Remove shuffle_scno calls. * syscall.c (get_scno): Call shuffle_scno after arch_get_scno.
22 lines
450 B
C
22 lines
450 B
C
/* Return codes: 1 - ok, 0 - ignore, other - error. */
|
|
static int
|
|
arch_get_scno(struct tcb *tcp)
|
|
{
|
|
kernel_ulong_t scno = 0;
|
|
|
|
switch (aarch64_io.iov_len) {
|
|
case sizeof(aarch64_regs):
|
|
/* We are in 64-bit mode */
|
|
scno = aarch64_regs.regs[8];
|
|
break;
|
|
case sizeof(arm_regs):
|
|
/* We are in 32-bit mode */
|
|
/* Note: we don't support OABI, unlike 32-bit ARM build */
|
|
scno = arm_regs.ARM_r7;
|
|
break;
|
|
}
|
|
|
|
tcp->scno = scno;
|
|
return 1;
|
|
}
|