Added Linux compatibility support for powerpc ports

This commit is contained in:
manu 2001-01-19 01:40:38 +00:00
parent 5472427809
commit cac0b39302
9 changed files with 38 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_exec.h,v 1.13 2000/11/21 00:37:54 jdolecek Exp $ */ /* $NetBSD: linux_exec.h,v 1.14 2001/01/19 01:40:38 manu Exp $ */
/*- /*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@ -45,6 +45,8 @@
#include <compat/linux/arch/m68k/linux_exec.h> #include <compat/linux/arch/m68k/linux_exec.h>
#elif defined(__alpha__) #elif defined(__alpha__)
#include <compat/linux/arch/alpha/linux_exec.h> #include <compat/linux/arch/alpha/linux_exec.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/powerpc/linux_exec.h>
#else #else
#error Undefined linux_exec.h machine type. #error Undefined linux_exec.h machine type.
#endif #endif
@ -74,6 +76,17 @@
#define LINUX_N_BSSADDR(x,m) (LINUX_N_DATADDR(x,m) + (x).a_data) #define LINUX_N_BSSADDR(x,m) (LINUX_N_DATADDR(x,m) + (x).a_data)
/*
* From Linux's include/linux/elf.h
*/
#define LINUX_AT_UID 11 /* real uid */
#define LINUX_AT_EUID 12 /* effective uid */
#define LINUX_AT_GID 13 /* real gid */
#define LINUX_AT_EGID 14 /* effective gid */
#define LINUX_AT_PLATFORM 15 /* string identifying CPU for optimizations */
#define LINUX_AT_HWCAP 16 /* arch dependent hints at CPU capabilities */
#define LINUX_AT_CLKTCK 17 /* frequency at which times() increments */
#ifdef _KERNEL #ifdef _KERNEL
__BEGIN_DECLS __BEGIN_DECLS
extern const struct emul emul_linux; extern const struct emul emul_linux;

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_fcntl.h,v 1.5 1998/12/15 19:31:39 itohy Exp $ */ /* $NetBSD: linux_fcntl.h,v 1.6 2001/01/19 01:40:39 manu Exp $ */
/*- /*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@ -64,6 +64,8 @@ struct linux_flock {
#include <compat/linux/arch/m68k/linux_fcntl.h> #include <compat/linux/arch/m68k/linux_fcntl.h>
#elif defined(__alpha__) #elif defined(__alpha__)
#include <compat/linux/arch/alpha/linux_fcntl.h> #include <compat/linux/arch/alpha/linux_fcntl.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/powerpc/linux_fcntl.h>
#else #else
#error Undefined linux_fcntl.h machine type. #error Undefined linux_fcntl.h machine type.
#endif #endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_ioctl.h,v 1.13 2001/01/10 02:28:38 fvdl Exp $ */ /* $NetBSD: linux_ioctl.h,v 1.14 2001/01/19 01:40:39 manu Exp $ */
/*- /*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@ -65,6 +65,8 @@ __END_DECLS
#include <compat/linux/arch/m68k/linux_ioctl.h> #include <compat/linux/arch/m68k/linux_ioctl.h>
#elif defined(__alpha__) #elif defined(__alpha__)
#include <compat/linux/arch/alpha/linux_ioctl.h> #include <compat/linux/arch/alpha/linux_ioctl.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/powerpc/linux_ioctl.h>
#else #else
#error Undefined linux_ioctl.h machine type. #error Undefined linux_ioctl.h machine type.
#endif #endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_machdep.h,v 1.2 1998/12/15 19:31:39 itohy Exp $ */ /* $NetBSD: linux_machdep.h,v 1.3 2001/01/19 01:40:39 manu Exp $ */
/*- /*-
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -45,6 +45,8 @@
#include <compat/linux/arch/m68k/linux_machdep.h> #include <compat/linux/arch/m68k/linux_machdep.h>
#elif defined(__alpha__) #elif defined(__alpha__)
#include <compat/linux/arch/alpha/linux_machdep.h> #include <compat/linux/arch/alpha/linux_machdep.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/powerpc/linux_machdep.h>
#else #else
#error Undefined linux_machdep.h machine type. #error Undefined linux_machdep.h machine type.
#endif #endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_siginfo.h,v 1.2 1998/12/15 19:31:39 itohy Exp $ */ /* $NetBSD: linux_siginfo.h,v 1.3 2001/01/19 01:40:39 manu Exp $ */
/*- /*-
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -46,6 +46,8 @@
#include <compat/linux/arch/m68k/linux_siginfo.h> #include <compat/linux/arch/m68k/linux_siginfo.h>
#elif defined(__alpha__) #elif defined(__alpha__)
#include <compat/linux/arch/alpha/linux_siginfo.h> #include <compat/linux/arch/alpha/linux_siginfo.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/powerpc/linux_siginfo.h>
#else #else
#error Undefined linux_siginfo.h machine type. #error Undefined linux_siginfo.h machine type.
#endif #endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_signal.h,v 1.12 2001/01/18 20:28:26 jdolecek Exp $ */ /* $NetBSD: linux_signal.h,v 1.13 2001/01/19 01:40:39 manu Exp $ */
/*- /*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@ -45,6 +45,8 @@
#include <compat/linux/arch/m68k/linux_signal.h> #include <compat/linux/arch/m68k/linux_signal.h>
#elif defined(__alpha__) #elif defined(__alpha__)
#include <compat/linux/arch/alpha/linux_signal.h> #include <compat/linux/arch/alpha/linux_signal.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/powerpc/linux_signal.h>
#else #else
#error Undefined linux_signal.h machine type. #error Undefined linux_signal.h machine type.
#endif #endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_socket.h,v 1.7 1998/12/15 19:31:40 itohy Exp $ */ /* $NetBSD: linux_socket.h,v 1.8 2001/01/19 01:40:39 manu Exp $ */
/*- /*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@ -129,6 +129,8 @@
#include <compat/linux/arch/m68k/linux_socket.h> #include <compat/linux/arch/m68k/linux_socket.h>
#elif defined(__alpha__) #elif defined(__alpha__)
#include <compat/linux/arch/alpha/linux_socket.h> #include <compat/linux/arch/alpha/linux_socket.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/powerpc/linux_socket.h>
#else #else
#error Undefined linux_socket.h machine type. #error Undefined linux_socket.h machine type.
#endif #endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_termios.h,v 1.6 2000/12/10 14:12:17 fvdl Exp $ */ /* $NetBSD: linux_termios.h,v 1.7 2001/01/19 01:40:39 manu Exp $ */
/*- /*-
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -126,6 +126,8 @@ struct linux_termios {
#include <compat/linux/arch/m68k/linux_termios.h> #include <compat/linux/arch/m68k/linux_termios.h>
#elif defined(__alpha__) #elif defined(__alpha__)
#include <compat/linux/arch/alpha/linux_termios.h> #include <compat/linux/arch/alpha/linux_termios.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/powerpc/linux_termios.h>
#else #else
#error Undefined linux_termios.h machine type. #error Undefined linux_termios.h machine type.
#endif #endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_types.h,v 1.10 2000/12/29 21:07:17 fvdl Exp $ */ /* $NetBSD: linux_types.h,v 1.11 2001/01/19 01:40:40 manu Exp $ */
/*- /*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@ -43,6 +43,8 @@
#include <compat/linux/arch/i386/linux_types.h> #include <compat/linux/arch/i386/linux_types.h>
#elif defined(__alpha__) #elif defined(__alpha__)
#include <compat/linux/arch/alpha/linux_types.h> #include <compat/linux/arch/alpha/linux_types.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/powerpc/linux_types.h>
/* /*
* The rest are not written yet: * The rest are not written yet:
*/ */
@ -52,8 +54,6 @@
#include <compat/linux/arch/m68k/linux_types.h> #include <compat/linux/arch/m68k/linux_types.h>
#elif defined(__mips__) #elif defined(__mips__)
#include <compat/linux/arch/mips/linux_types.h> #include <compat/linux/arch/mips/linux_types.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/power/linux_types.h>
#endif #endif
/* /*