Added support for powerpc Linux compatibility
This commit is contained in:
parent
ac10cf6946
commit
083ffa3b67
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_exec.c,v 1.44 2000/12/11 05:29:01 mycroft Exp $ */
|
||||
/* $NetBSD: linux_exec.c,v 1.45 2001/01/19 01:44:46 manu Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994, 1995, 1998, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -113,7 +113,7 @@ const struct emul emul_linux = {
|
|||
"/emul/linux",
|
||||
#ifndef __HAVE_MINIMAL_EMUL
|
||||
0,
|
||||
native_to_linux_errno,
|
||||
(int*)native_to_linux_errno,
|
||||
LINUX_SYS_syscall,
|
||||
LINUX_SYS_MAXSYSCALL,
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_file.c,v 1.34 2000/12/29 20:08:31 fvdl Exp $ */
|
||||
/* $NetBSD: linux_file.c,v 1.35 2001/01/19 01:44:46 manu Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -714,7 +714,8 @@ linux_sys_lchown16(p, v, retval)
|
|||
|
||||
return sys___posix_lchown(p, &bla, retval);
|
||||
}
|
||||
|
||||
#endif /* __i386__ || __m68k__ */
|
||||
#if defined (__i386__) || defined (__m68k__) || defined (__powerpc__)
|
||||
int
|
||||
linux_sys_chown(p, v, retval)
|
||||
struct proc *p;
|
||||
|
@ -750,7 +751,7 @@ linux_sys_lchown(p, v, retval)
|
|||
|
||||
return sys___posix_lchown(p, uap, retval);
|
||||
}
|
||||
#endif /* __i386__ || __m68k__ */
|
||||
#endif /* __i386__ || __m68k__ || __powerpc__ */
|
||||
|
||||
int
|
||||
linux_sys_rename(p, v, retval)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_syscall.h,v 1.37 1998/12/15 19:31:30 itohy Exp $ */
|
||||
/* $NetBSD: linux_syscall.h,v 1.38 2001/01/19 01:46:23 manu Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -45,6 +45,8 @@
|
|||
#include <compat/linux/arch/m68k/linux_syscall.h>
|
||||
#elif defined(__alpha__)
|
||||
#include <compat/linux/arch/alpha/linux_syscall.h>
|
||||
#elif defined(__powerpc__)
|
||||
#include <compat/linux/arch/powerpc/linux_syscall.h>
|
||||
#else
|
||||
#define LINUX_SYS_MAXSYSCALL 0
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_syscallargs.h,v 1.35 1998/12/15 19:31:30 itohy Exp $ */
|
||||
/* $NetBSD: linux_syscallargs.h,v 1.36 2001/01/19 01:46:23 manu Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -45,6 +45,8 @@
|
|||
#include <compat/linux/arch/m68k/linux_syscallargs.h>
|
||||
#elif defined(__alpha__)
|
||||
#include <compat/linux/arch/alpha/linux_syscallargs.h>
|
||||
#elif defined(__powerpc__)
|
||||
#include <compat/linux/arch/powerpc/linux_syscallargs.h>
|
||||
#else
|
||||
#error Undefined linux_syscallargs.h machine type.
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_syscalls.c,v 1.36 2000/11/15 08:34:03 onoe Exp $ */
|
||||
/* $NetBSD: linux_syscalls.c,v 1.37 2001/01/19 01:46:23 manu Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -44,6 +44,8 @@
|
|||
#include "../../sys/compat/linux/arch/m68k/linux_syscalls.c"
|
||||
#elif defined(__alpha__)
|
||||
#include "../../sys/compat/linux/arch/alpha/linux_syscalls.c"
|
||||
#elif defined(__powerpc__)
|
||||
#include "../../sys/compat/linux/arch/powerpc/linux_syscalls.c"
|
||||
#else
|
||||
const char * const linux_syscallnames[] = { 0 };
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue