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.
8 lines
144 B
C
8 lines
144 B
C
/* Return codes: 1 - ok, 0 - ignore, other - error. */
|
|
static int
|
|
arch_get_scno(struct tcb *tcp)
|
|
{
|
|
tcp->scno = m68k_regs.orig_d0;
|
|
return 1;
|
|
}
|