Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Added COMPAT_IRIX (being developped, not functionnal at ...



details:   https://anonhg.NetBSD.org/src/rev/1fe4f85f4537
branches:  trunk
changeset: 518246:1fe4f85f4537
user:      manu <manu%NetBSD.org@localhost>
date:      Mon Nov 26 21:38:41 2001 +0000

description:
Added COMPAT_IRIX (being developped, not functionnal at that time)

diffstat:

 sys/arch/mips/conf/files.mips |   5 ++++-
 sys/kern/exec_conf.c          |  16 ++++++++++++++--
 2 files changed, 18 insertions(+), 3 deletions(-)

diffs (65 lines):

diff -r 28b46f05690f -r 1fe4f85f4537 sys/arch/mips/conf/files.mips
--- a/sys/arch/mips/conf/files.mips     Mon Nov 26 21:36:24 2001 +0000
+++ b/sys/arch/mips/conf/files.mips     Mon Nov 26 21:38:41 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.mips,v 1.33 2001/11/20 12:56:32 lukem Exp $
+#      $NetBSD: files.mips,v 1.34 2001/11/26 21:38:41 manu Exp $
 #
 
 defopt         opt_cputype.h           NOTYET  # MIPS1 MIPS2 MIPS3 MIPS4 MIPS5
@@ -53,3 +53,6 @@
 file arch/mips/mips/linux_trap.c                       compat_linux
 file arch/mips/mips/linux_syscall.c                    compat_linux
 
+# IRIX compatibility (COMPAT_IRIX)        XXX even more experimental
+include "compat/irix/files.irix"
+
diff -r 28b46f05690f -r 1fe4f85f4537 sys/kern/exec_conf.c
--- a/sys/kern/exec_conf.c      Mon Nov 26 21:36:24 2001 +0000
+++ b/sys/kern/exec_conf.c      Mon Nov 26 21:38:41 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_conf.c,v 1.60 2001/11/12 15:25:02 lukem Exp $     */
+/*     $NetBSD: exec_conf.c,v 1.61 2001/11/26 21:43:01 manu Exp $      */
 
 /*
  * Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -31,12 +31,13 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_conf.c,v 1.60 2001/11/12 15:25:02 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_conf.c,v 1.61 2001/11/26 21:43:01 manu Exp $");
 
 #include "opt_execfmt.h"
 #include "opt_compat_freebsd.h"
 #include "opt_compat_linux.h"
 #include "opt_compat_ibcs2.h"
+#include "opt_compat_irix.h"
 #include "opt_compat_sunos.h"
 #include "opt_compat_hpux.h"
 #include "opt_compat_m68k4k.h"
@@ -128,6 +129,10 @@
 #include <compat/mach/mach_exec.h>
 #endif
 
+#ifdef COMPAT_IRIX
+#include <compat/irix/irix_exec.h>
+#endif
+
 #ifdef COMPAT_NETBSD32
 #include <compat/netbsd32/netbsd32_exec.h>
 #ifdef COMPAT_SUNOS
@@ -244,6 +249,13 @@
          MAXPATHLEN + 1,
          exec_mach_copyargs, NULL },   /* Mach 32bit MACH-O bins */
 #endif
+#ifdef COMPAT_IRIX
+       { sizeof (Elf32_Ehdr), exec_elf32_makecmds,
+         { ELF32NAME2(irix,probe) },
+         &emul_irix, EXECSW_PRIO_ANY,
+         IRIX_AUX_ARGSIZ,
+         irix_elf32_copyargs, NULL }, /* IRIX 6.5 ELF n32 bins */
+#endif
 #ifdef COMPAT_SVR4_32
        { sizeof (Elf32_Ehdr), exec_elf32_makecmds,
          { ELF32NAME2(svr4_32,probe) },



Home | Main Index | Thread Index | Old Index