• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef ARCH_REGSET
2 # define ARCH_REGSET s390_regset
3 #endif
4 
5 static int
arch_set_error(struct tcb * tcp)6 arch_set_error(struct tcb *tcp)
7 {
8 	ARCH_REGSET.gprs[2] = -tcp->u_error;
9 	return set_regs(tcp->pid);
10 }
11 
12 static int
arch_set_success(struct tcb * tcp)13 arch_set_success(struct tcb *tcp)
14 {
15 	ARCH_REGSET.gprs[2] = tcp->u_rval;
16 	return set_regs(tcp->pid);
17 }
18