Dmitry V. Levin
f51aec6abf
Make get_syscall_result.c files more self-contained. While they are still being included by syscall.c, the latter no longer provides a function framework for them. * linux/alpha/get_syscall_result.c (get_syscall_result_regs): Define. * linux/bfin/get_syscall_result.c: Likewise. * linux/crisv10/get_syscall_result.c: Likewise. * linux/hppa/get_syscall_result.c: Likewise. * linux/m68k/get_syscall_result.c: Likewise. * linux/microblaze/get_syscall_result.c: Likewise. * linux/sh/get_syscall_result.c: Likewise. * linux/sh64/get_syscall_result.c: Likewise. * linux/xtensa/get_syscall_result.c: Likewise. * syscall.c [!ARCH_REGS_FOR_GETREGSET && !ARCH_REGS_FOR_GETREGS]: Define USE_GET_SYSCALL_RESULT_REGS macro. [USE_GET_SYSCALL_RESULT_REGS]: Include "get_syscall_result.c". (get_syscall_result) [USE_GET_SYSCALL_RESULT_REGS]: Stop including "get_syscall_result.c". Call get_syscall_result_regs. Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
7 lines
159 B
C
7 lines
159 B
C
static int
|
|
get_syscall_result_regs(struct tcb *tcp)
|
|
{
|
|
return (upeek(tcp->pid, REG_A3, &alpha_a3) < 0 ||
|
|
upeek(tcp->pid, REG_R0, &alpha_r0) < 0) ? -1 : 0;
|
|
}
|