1 #define arch_set_error arm_set_error 2 #define arch_set_success arm_set_success 3 #include "arm/set_error.c" 4 #undef arch_set_success 5 #undef arch_set_error 6 7 static int arch_set_error(struct tcb * tcp)8arch_set_error(struct tcb *tcp) 9 { 10 if (aarch64_io.iov_len == sizeof(arm_regs)) 11 return arm_set_error(tcp); 12 13 aarch64_regs.regs[0] = -tcp->u_error; 14 return set_regs(tcp->pid); 15 } 16 17 static int arch_set_success(struct tcb * tcp)18arch_set_success(struct tcb *tcp) 19 { 20 if (aarch64_io.iov_len == sizeof(arm_regs)) 21 return arm_set_success(tcp); 22 23 aarch64_regs.regs[0] = tcp->u_rval; 24 return set_regs(tcp->pid); 25 } 26