Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys m68k syscall rototill:
details: https://anonhg.NetBSD.org/src/rev/1f52b0c331d6
branches: trunk
changeset: 534016:1f52b0c331d6
user: scw <scw%NetBSD.org@localhost>
date: Sat Jul 13 08:28:40 2002 +0000
description:
m68k syscall rototill:
- Switch all m68k-based ports over to __HAVE_SYSCALL_INTERN.
- Add systrace glue.
- Define struct mdproc in <m68k/proc.h> instead of <machine/proc.h>.
(They were all defined exactly the same anyway, other than a couple
of the MDP_* flags.)
diffstat:
sys/arch/amiga/include/proc.h | 53 +----
sys/arch/atari/include/proc.h | 52 +----
sys/arch/cesfic/include/proc.h | 55 +----
sys/arch/hp300/include/proc.h | 53 +----
sys/arch/luna68k/include/proc.h | 54 +----
sys/arch/m68k/conf/files.m68k | 6 +-
sys/arch/m68k/include/Makefile | 4 +-
sys/arch/m68k/include/proc.h | 65 +++++
sys/arch/m68k/include/svr4_machdep.h | 4 +-
sys/arch/m68k/include/types.h | 4 +-
sys/arch/m68k/m68k/hpux_syscall.c | 19 +
sys/arch/m68k/m68k/linux_syscall.c | 289 ++++++++++++++++++++++++
sys/arch/m68k/m68k/m68k_syscall.c | 313 ++++++++++++++++---------
sys/arch/m68k/m68k/sunos_syscall.c | 347 +++++++++++++++++++++++++++++
sys/arch/m68k/m68k/svr4_syscall.c | 19 +
sys/arch/mac68k/include/proc.h | 50 +----
sys/arch/mvme68k/include/proc.h | 55 +----
sys/arch/news68k/include/proc.h | 53 +----
sys/arch/next68k/include/proc.h | 62 +-----
sys/arch/sun2/include/proc.h | 53 +----
sys/arch/sun3/include/proc.h | 53 +----
sys/arch/x68k/include/proc.h | 53 +----
sys/compat/aoutm68k/aoutm68k_exec.c | 8 +-
sys/compat/hpux/hpux_exec.c | 12 +-
sys/compat/linux/arch/m68k/linux_exec.h | 5 +-
sys/compat/linux/arch/m68k/linux_machdep.h | 8 +-
sys/compat/sunos/sunos_exec.c | 12 +-
27 files changed, 1011 insertions(+), 750 deletions(-)
diffs (truncated from 2105 to 300 lines):
diff -r 88c8247413db -r 1f52b0c331d6 sys/arch/amiga/include/proc.h
--- a/sys/arch/amiga/include/proc.h Sat Jul 13 05:55:26 2002 +0000
+++ b/sys/arch/amiga/include/proc.h Sat Jul 13 08:28:40 2002 +0000
@@ -1,52 +1,3 @@
-/* $NetBSD: proc.h,v 1.12 1997/06/08 10:35:39 veego Exp $ */
+/* $NetBSD: proc.h,v 1.13 2002/07/13 08:28:41 scw Exp $ */
-/*
- * Copyright (c) 1991 Regents of the University of California.
- * All rights reserved.
- *
- * 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 University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University 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 REGENTS 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 REGENTS 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.
- *
- * @(#)proc.h 7.1 (Berkeley) 5/15/91
- */
-#ifndef _MACHINE_PROC_H_
-#define _MACHINE_PROC_H_
-
-/*
- * Machine-dependent part of the proc structure for amiga.
- */
-struct mdproc {
- int *md_regs; /* registers on current frame */
- long md_flags; /* machine-dependent flags */
-};
-
-/* md_flags */
-#define MDP_STACKADJ 0x0001 /* frame SP adjusted, might have to
- undo when system call returns
- ERESTART. */
-#endif /* !_MACHINE_PROC_H_ */
+#include <m68k/proc.h>
diff -r 88c8247413db -r 1f52b0c331d6 sys/arch/atari/include/proc.h
--- a/sys/arch/atari/include/proc.h Sat Jul 13 05:55:26 2002 +0000
+++ b/sys/arch/atari/include/proc.h Sat Jul 13 08:28:40 2002 +0000
@@ -1,51 +1,3 @@
-/* $NetBSD: proc.h,v 1.2 1997/06/11 08:58:09 kleink Exp $ */
+/* $NetBSD: proc.h,v 1.3 2002/07/13 08:28:41 scw Exp $ */
-/*
- * Copyright (c) 1991 Regents of the University of California.
- * All rights reserved.
- *
- * 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 University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University 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 REGENTS 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 REGENTS 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 _MACHINE_PROC_H_
-#define _MACHINE_PROC_H_
-
-/*
- * Machine-dependent part of the proc structure for atari.
- */
-struct mdproc {
- int *md_regs; /* registers on current frame */
- long md_flags; /* machine-dependent flags */
-};
-
-/* md_flags */
-#define MDP_STACKADJ 0x0001 /* frame SP adjusted, might have to
- undo when system call returns
- ERESTART. */
-#endif /* !_MACHINE_PROC_H_ */
+#include <m68k/proc.h>
diff -r 88c8247413db -r 1f52b0c331d6 sys/arch/cesfic/include/proc.h
--- a/sys/arch/cesfic/include/proc.h Sat Jul 13 05:55:26 2002 +0000
+++ b/sys/arch/cesfic/include/proc.h Sat Jul 13 08:28:40 2002 +0000
@@ -1,54 +1,3 @@
-/* $NetBSD: proc.h,v 1.1 2001/05/14 18:23:13 drochner Exp $ */
+/* $NetBSD: proc.h,v 1.2 2002/07/13 08:28:41 scw Exp $ */
-/*
- * Copyright (c) 1991, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * 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 University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University 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 REGENTS 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 REGENTS 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.
- *
- * @(#)proc.h 8.1 (Berkeley) 6/10/93
- */
-
-/*
- * Machine-dependent part of the proc structure for cesfic.
- */
-struct mdproc {
- int *md_regs; /* registers on current frame */
- int md_flags; /* machine-dependent flags */
-};
-
-/* md_flags */
-#if 0
-#define MDP_HPUXMMAP 0x0008 /* VA space is multiply mapped */
-#define MDP_CCBDATA 0x0010 /* copyback caching of data (68040) */
-#define MDP_CCBSTACK 0x0020 /* copyback caching of stack (68040) */
-#endif
-#define MDP_STACKADJ 0x0040 /* Frame SP adjusted, might have to
- * undo when system call returns
- * ERESTART. */
+#include <m68k/proc.h>
diff -r 88c8247413db -r 1f52b0c331d6 sys/arch/hp300/include/proc.h
--- a/sys/arch/hp300/include/proc.h Sat Jul 13 05:55:26 2002 +0000
+++ b/sys/arch/hp300/include/proc.h Sat Jul 13 08:28:40 2002 +0000
@@ -1,52 +1,3 @@
-/* $NetBSD: proc.h,v 1.8 1997/10/05 02:12:52 carrel Exp $ */
+/* $NetBSD: proc.h,v 1.9 2002/07/13 08:28:42 scw Exp $ */
-/*
- * Copyright (c) 1991, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * 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 University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University 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 REGENTS 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 REGENTS 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.
- *
- * @(#)proc.h 8.1 (Berkeley) 6/10/93
- */
-
-/*
- * Machine-dependent part of the proc structure for hp300.
- */
-struct mdproc {
- int *md_regs; /* registers on current frame */
- int md_flags; /* machine-dependent flags */
-};
-
-/* md_flags */
-#define MDP_HPUXMMAP 0x0008 /* VA space is multiply mapped */
-#define MDP_CCBDATA 0x0010 /* copyback caching of data (68040) */
-#define MDP_CCBSTACK 0x0020 /* copyback caching of stack (68040) */
-#define MDP_STACKADJ 0x0040 /* Frame SP adjusted, might have to
- * undo when system call returns
- * ERESTART. */
+#include <m68k/proc.h>
diff -r 88c8247413db -r 1f52b0c331d6 sys/arch/luna68k/include/proc.h
--- a/sys/arch/luna68k/include/proc.h Sat Jul 13 05:55:26 2002 +0000
+++ b/sys/arch/luna68k/include/proc.h Sat Jul 13 08:28:40 2002 +0000
@@ -1,53 +1,3 @@
-/* $NetBSD: proc.h,v 1.1 2000/01/05 08:48:58 nisimura Exp $ */
+/* $NetBSD: proc.h,v 1.2 2002/07/13 08:28:42 scw Exp $ */
-/*
- * Copyright (c) 1991, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * 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 University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University 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 REGENTS 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 REGENTS 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.
- *
- * @(#)proc.h 8.1 (Berkeley) 6/10/93
- */
-
-/*
- * Machine-dependent part of the proc structure for luna68k.
- */
-struct mdproc {
- int *md_regs; /* registers on current frame */
- int md_flags; /* machine-dependent flags */
-};
-
-/* md_flags */
-#define MDP_STACKADJ 0x0002 /* frame SP adjusted, might have to
- undo when system call returns
- ERESTART. */
-#define MDP_HPUXTRACE 0x0004 /* being traced by HP-UX process */
-#define MDP_HPUXMMAP 0x0008 /* VA space is multiply mapped */
-#define MDP_CCBDATA 0x0010 /* copyback caching of data (68040) */
-#define MDP_CCBSTACK 0x0020 /* copyback caching of stack (68040) */
+#include <m68k/proc.h>
diff -r 88c8247413db -r 1f52b0c331d6 sys/arch/m68k/conf/files.m68k
--- a/sys/arch/m68k/conf/files.m68k Sat Jul 13 05:55:26 2002 +0000
+++ b/sys/arch/m68k/conf/files.m68k Sat Jul 13 08:28:40 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.m68k,v 1.32 2001/11/28 10:21:15 lukem Exp $
+# $NetBSD: files.m68k,v 1.33 2002/07/13 08:28:42 scw Exp $
#
Home |
Main Index |
Thread Index |
Old Index