xref: /aosp_15_r20/external/strace/linux/sparc/set_scno.c (revision cf84ac9a129d8ea9952db616b4e9b904c4bdde56)
1 /*
2  * Reloading the syscall number from %g1 register is supported
3  * by linux kernel starting with commit v4.5-rc7~35^2~3.
4  */
5 
6 static int
arch_set_scno(struct tcb * tcp,kernel_ulong_t scno)7 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno)
8 {
9 	sparc_regs.u_regs[U_REG_G1] = scno;
10 	return set_regs(tcp->pid);
11 }
12