huangcm
2025-08-25 f350412dc55c15118d0a7925d1071877498e5e24
1
2
3
4
5
6
7
8
9
10
11
/*
 * Reloading the syscall number from %g1 register is supported
 * by linux kernel starting with commit v4.5-rc7~35^2~3.
 */
 
static int
arch_set_scno(struct tcb *tcp, kernel_ulong_t scno)
{
   sparc_regs.u_regs[U_REG_G1] = scno;
   return set_regs(tcp->pid);
}