Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/irix Empty framework for upcoming work on IRIX_CO...



details:   https://anonhg.NetBSD.org/src/rev/35a9f6b1c008
branches:  trunk
changeset: 515354:35a9f6b1c008
user:      manu <manu%NetBSD.org@localhost>
date:      Sat Sep 22 18:51:35 2001 +0000

description:
Empty framework for upcoming work on IRIX_COMPAT

diffstat:

 sys/compat/irix/Makefile           |   11 +
 sys/compat/irix/files.irix         |    4 +
 sys/compat/irix/irix_exec.c        |   90 +++++++++++
 sys/compat/irix/irix_exec.h        |   45 +++++
 sys/compat/irix/irix_syscall.h     |   11 +
 sys/compat/irix/irix_syscallargs.h |   33 ++++
 sys/compat/irix/irix_syscalls.c    |  152 ++++++++++++++++++++
 sys/compat/irix/irix_sysent.c      |  281 +++++++++++++++++++++++++++++++++++++
 sys/compat/irix/irix_types.h       |   48 ++++++
 sys/compat/irix/syscalls.conf      |   13 +
 sys/compat/irix/syscalls.master    |  175 +++++++++++++++++++++++
 11 files changed, 863 insertions(+), 0 deletions(-)

diffs (truncated from 907 to 300 lines):

diff -r 6118caac8814 -r 35a9f6b1c008 sys/compat/irix/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/irix/Makefile  Sat Sep 22 18:51:35 2001 +0000
@@ -0,0 +1,11 @@
+#      $NetBSD: Makefile,v 1.1 2001/09/22 18:51:35 manu Exp $
+
+DEP=   syscalls.conf syscalls.master ../../kern/makesyscalls.sh
+OBJS=  irix_sysent.c irix_syscalls.c irix_syscall.h irix_syscallargs.h
+
+${OBJS}: ${DEP}
+       -mv -f irix_sysent.c irix_sysent.c.bak
+       -mv -f irix_syscalls.c irix_syscalls.c.bak
+       -mv -f irix_syscall.h irix_syscall.h.bak
+       -mv -f irix_syscallargs.h irix_syscallargs.h.bak
+       sh ../../kern/makesyscalls.sh syscalls.conf syscalls.master
diff -r 6118caac8814 -r 35a9f6b1c008 sys/compat/irix/files.irix
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/irix/files.irix        Sat Sep 22 18:51:35 2001 +0000
@@ -0,0 +1,4 @@
+#      $NetBSD: files.irix,v 1.1 2001/09/22 18:51:35 manu Exp $
+#
+
+file   compat/irix/irix_exec.c                 compat_irix
diff -r 6118caac8814 -r 35a9f6b1c008 sys/compat/irix/irix_exec.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/irix/irix_exec.c       Sat Sep 22 18:51:35 2001 +0000
@@ -0,0 +1,90 @@
+/*     $NetBSD: irix_exec.c,v 1.1 2001/09/22 18:51:35 manu Exp $ */
+
+/*-
+ * Copyright (c) 2001 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Emmanuel Dreyfus.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *        This product includes software developed by the NetBSD
+ *        Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ *    contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/proc.h>
+#include <sys/exec.h>
+#include <sys/malloc.h>
+
+#include <sys/syscall.h>
+
+#include <compat/irix/irix_types.h>
+#include <compat/irix/irix_exec.h>
+
+extern char sigcode[], esigcode[];
+extern struct sysent sysent[];
+#ifndef __HAVE_SYSCALL_INTERN
+void syscall __P((void));
+#else
+void irix_syscall_intern __P((struct proc *));
+#endif
+
+const struct emul emul_irix = {
+       "irix",
+       "/emul/irix",
+#ifndef __HAVE_MINIMAL_EMUL
+       0,
+       0,
+       SYS_syscall,
+       SYS_MAXSYSCALL,
+#endif
+       sysent,
+#ifdef SYSCALL_DEBUG
+       syscallnames,
+#else
+       NULL,
+#endif
+       sendsig,
+       trapsignal,
+       sigcode,
+       esigcode,
+       NULL,
+       NULL,
+       NULL,
+#ifdef __HAVE_SYSCALL_INTERN
+       irix_syscall_intern,
+#else
+       syscall,
+#endif
+};
+
+int
+exec_irix_probe(char **path) {
+       return 0;
+}
diff -r 6118caac8814 -r 35a9f6b1c008 sys/compat/irix/irix_exec.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/irix/irix_exec.h       Sat Sep 22 18:51:35 2001 +0000
@@ -0,0 +1,45 @@
+/*     $NetBSD: irix_exec.h,v 1.1 2001/09/22 18:51:36 manu Exp $ */
+
+/*-
+ * Copyright (c) 2001 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Emmanuel Dreyfus.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *        This product includes software developed by the NetBSD
+ *        Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ *    contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef        _IRIX_EXEC_H_
+#define        _IRIX_EXEC_H_
+
+int exec_irix_probe __P((char **));
+extern const struct emul emul_irix;
+
+#endif /* !_IRIX_EXEC_H_ */
diff -r 6118caac8814 -r 35a9f6b1c008 sys/compat/irix/irix_syscall.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/irix/irix_syscall.h    Sat Sep 22 18:51:35 2001 +0000
@@ -0,0 +1,11 @@
+/* $NetBSD: irix_syscall.h,v 1.1 2001/09/22 18:51:36 manu Exp $ */
+
+/*
+ * System call numbers.
+ *
+ * DO NOT EDIT-- this file is automatically generated.
+ * created from        NetBSD
+ */
+
+#define        IRIX_SYS_MAXSYSCALL     128
+#define        IRIX_SYS_NSYSENT        128
diff -r 6118caac8814 -r 35a9f6b1c008 sys/compat/irix/irix_syscallargs.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/irix/irix_syscallargs.h        Sat Sep 22 18:51:35 2001 +0000
@@ -0,0 +1,33 @@
+/* $NetBSD: irix_syscallargs.h,v 1.1 2001/09/22 18:51:36 manu Exp $ */
+
+/*
+ * System call argument lists.
+ *
+ * DO NOT EDIT-- this file is automatically generated.
+ * created from        NetBSD
+ */
+
+#ifndef _IRIX_SYS__SYSCALLARGS_H_
+#define        _IRIX_SYS__SYSCALLARGS_H_
+
+#ifdef syscallarg
+#undef syscallarg
+#endif
+
+#define        syscallarg(x)                                                   \
+       union {                                                         \
+               register_t pad;                                         \
+               struct { x datum; } le;                                 \
+               struct {                                                \
+                       int8_t pad[ (sizeof (register_t) < sizeof (x))  \
+                               ? 0                                     \
+                               : sizeof (register_t) - sizeof (x)];    \
+                       x datum;                                        \
+               } be;                                                   \
+       }
+
+/*
+ * System call prototypes.
+ */
+
+#endif /* _IRIX_SYS__SYSCALLARGS_H_ */
diff -r 6118caac8814 -r 35a9f6b1c008 sys/compat/irix/irix_syscalls.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/irix/irix_syscalls.c   Sat Sep 22 18:51:35 2001 +0000
@@ -0,0 +1,152 @@
+/* $NetBSD: irix_syscalls.c,v 1.1 2001/09/22 18:51:36 manu Exp $ */
+
+/*
+ * System call names.
+ *
+ * DO NOT EDIT-- this file is automatically generated.
+ * created from        NetBSD
+ */
+
+#if defined(_KERNEL_OPT)
+#if defined(_KERNEL_OPT)
+#include "opt_ntp.h"
+#include "opt_sysv.h"
+#endif
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/signal.h>
+#include <sys/mount.h>
+#include <sys/poll.h>
+#include <sys/syscallargs.h>
+#endif /* _KERNEL_OPT */
+
+const char *const irix_syscallnames[] = {
+       "#0 (unimplemented)",           /* 0 = unimplemented */
+       "#1 (unimplemented)",           /* 1 = unimplemented */
+       "#2 (unimplemented)",           /* 2 = unimplemented */
+       "#3 (unimplemented)",           /* 3 = unimplemented */
+       "#4 (unimplemented)",           /* 4 = unimplemented */
+       "#5 (unimplemented)",           /* 5 = unimplemented */
+       "#6 (unimplemented)",           /* 6 = unimplemented */
+       "#7 (unimplemented)",           /* 7 = unimplemented */
+       "#8 (unimplemented)",           /* 8 = unimplemented */
+       "#9 (unimplemented)",           /* 9 = unimplemented */
+       "#10 (unimplemented)",          /* 10 = unimplemented */
+       "#11 (unimplemented)",          /* 11 = unimplemented */
+       "#12 (unimplemented)",          /* 12 = unimplemented */
+       "#13 (unimplemented)",          /* 13 = unimplemented */
+       "#14 (unimplemented)",          /* 14 = unimplemented */
+       "#15 (unimplemented)",          /* 15 = unimplemented */
+       "#16 (unimplemented)",          /* 16 = unimplemented */
+       "#17 (unimplemented)",          /* 17 = unimplemented */
+       "#18 (unimplemented)",          /* 18 = unimplemented */
+       "#19 (unimplemented)",          /* 19 = unimplemented */
+       "#20 (unimplemented)",          /* 20 = unimplemented */
+       "#21 (unimplemented)",          /* 21 = unimplemented */
+       "#22 (unimplemented)",          /* 22 = unimplemented */
+       "#23 (unimplemented)",          /* 23 = unimplemented */
+       "#24 (unimplemented)",          /* 24 = unimplemented */
+       "#25 (unimplemented)",          /* 25 = unimplemented */
+       "#26 (unimplemented)",          /* 26 = unimplemented */
+       "#27 (unimplemented)",          /* 27 = unimplemented */
+       "#28 (unimplemented)",          /* 28 = unimplemented */
+       "#29 (unimplemented)",          /* 29 = unimplemented */
+       "#30 (unimplemented)",          /* 30 = unimplemented */
+       "#31 (unimplemented)",          /* 31 = unimplemented */
+       "#32 (unimplemented)",          /* 32 = unimplemented */
+       "#33 (unimplemented)",          /* 33 = unimplemented */
+       "#34 (unimplemented)",          /* 34 = unimplemented */
+       "#35 (unimplemented)",          /* 35 = unimplemented */
+       "#36 (unimplemented)",          /* 36 = unimplemented */
+       "#37 (unimplemented)",          /* 37 = unimplemented */
+       "#38 (unimplemented)",          /* 38 = unimplemented */
+       "#39 (unimplemented)",          /* 39 = unimplemented */
+       "#40 (unimplemented)",          /* 40 = unimplemented */
+       "#41 (unimplemented)",          /* 41 = unimplemented */
+       "#42 (unimplemented)",          /* 42 = unimplemented */
+       "#43 (unimplemented)",          /* 43 = unimplemented */
+       "#44 (unimplemented)",          /* 44 = unimplemented */
+       "#45 (unimplemented)",          /* 45 = unimplemented */
+       "#46 (unimplemented)",          /* 46 = unimplemented */
+       "#47 (unimplemented)",          /* 47 = unimplemented */
+       "#48 (unimplemented)",          /* 48 = unimplemented */
+       "#49 (unimplemented)",          /* 49 = unimplemented */
+       "#50 (unimplemented)",          /* 50 = unimplemented */
+       "#51 (unimplemented)",          /* 51 = unimplemented */
+       "#52 (unimplemented)",          /* 52 = unimplemented */
+       "#53 (unimplemented)",          /* 53 = unimplemented */
+       "#54 (unimplemented)",          /* 54 = unimplemented */



Home | Main Index | Thread Index | Old Index