Home | History | Annotate | Download | only in x86_64
      1 #ifndef HAVE_GETREGS_OLD
      2 # define arch_set_scno i386_set_scno
      3 # include "i386/set_scno.c"
      4 # undef arch_set_scno
      5 #endif /* !HAVE_GETREGS_OLD */
      6 
      7 static int
      8 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno)
      9 {
     10 #ifdef HAVE_GETREGS_OLD
     11 	return upoke(tcp->pid, 8 * ORIG_RAX, scno);
     12 #else
     13 	if (x86_io.iov_len == sizeof(i386_regs))
     14 		return i386_set_scno(tcp, scno);
     15 
     16 	x86_64_regs.orig_rax = scno;
     17 	return set_regs(tcp->pid);
     18 #endif
     19 }
     20