• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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