a00648aa2b
* Makefile.am (EXTRA_DIST): Add linux/m68k/arch_regs.h, remove linux/m68k/get_syscall_result.c. * linux/m68k/arch_regs.c (m68k_d0, ARCH_PC_PEEK_ADDR): Don't define. (m68k_regs, m68k_usp_ptr, ARCH_PC_REG, ARCH_REGS_FOR_GETREGS): Define. * linux/m68k/arch_regs.h: New file. * linux/m68k/arch_sigreturn.c (arch_sigreturn): Use m68k_usp_ptr. * linux/m68k/get_error.c (get_error): Use m68k_regs.d0. * linux/m68k/get_scno.c (arch_get_scno): Use m68k_regs.orig_d0. * linux/m68k/get_syscall_args.c (get_syscall_args): Use m68k_regs. * linux/m68k/get_syscall_result.c: Remove.
13 lines
299 B
C
13 lines
299 B
C
/* Return -1 on error or 1 on success (never 0!). */
|
|
static int
|
|
get_syscall_args(struct tcb *tcp)
|
|
{
|
|
tcp->u_arg[0] = m68k_regs.d1;
|
|
tcp->u_arg[1] = m68k_regs.d2;
|
|
tcp->u_arg[2] = m68k_regs.d3;
|
|
tcp->u_arg[3] = m68k_regs.d4;
|
|
tcp->u_arg[4] = m68k_regs.d5;
|
|
tcp->u_arg[5] = m68k_regs.a0;
|
|
return 1;
|
|
}
|