Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/sommerfeld_i386mp_1]: src/sys/arch/i386 add RCSID
details: https://anonhg.NetBSD.org/src/rev/a3f07f08b299
branches: sommerfeld_i386mp_1
changeset: 482444:a3f07f08b299
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Nov 15 07:03:30 2001 +0000
description:
add RCSID
diffstat:
sys/arch/i386/i386/compat_13_machdep.c | 132 ++
sys/arch/i386/i386/dkbad.c | 71 +
sys/arch/i386/i386/ipkdb_glue.c | 147 ++
sys/arch/i386/i386/kgdb_machdep.c | 275 +++++
sys/arch/i386/i386/mach_machdep.c | 105 ++
sys/arch/i386/i386/macho_machdep.c | 132 ++
sys/arch/i386/i386/math_emulate.c | 1481 +++++++++++++++++++++++++++++
sys/arch/i386/i386/md_root.c | 86 +
sys/arch/i386/i386/rbus_machdep.c | 138 ++
sys/arch/i386/isa/isapnp_machdep.c | 142 ++
sys/arch/i386/isa/joy.c | 238 ++++
sys/arch/i386/isa/joy_isapnp.c | 111 ++
sys/arch/i386/isa/pms.c | 691 +++++++++++++
sys/arch/i386/pci/ali1543.c | 232 ++++
sys/arch/i386/pci/amd756.c | 263 +++++
sys/arch/i386/pci/joy_pci.c | 138 ++
sys/arch/i386/pci/opti82c558.c | 252 +++++
sys/arch/i386/pci/opti82c700.c | 382 +++++++
sys/arch/i386/pci/pceb.c | 161 +++
sys/arch/i386/pci/pci_addr_fixup.c | 423 ++++++++
sys/arch/i386/pci/pcib.c | 224 ++++
sys/arch/i386/pci/pcic_pci_machdep.c | 92 +
sys/arch/i386/pci/pciide_machdep.c | 75 +
sys/arch/i386/pci/pcmb.c | 146 ++
sys/arch/i386/pci/piix.c | 287 +++++
sys/arch/i386/pci/sis85c503.c | 183 +++
sys/arch/i386/pci/via82c586.c | 274 +++++
sys/arch/i386/pnpbios/com_pnpbios.c | 122 ++
sys/arch/i386/pnpbios/fdc_pnpbios.c | 189 +++
sys/arch/i386/pnpbios/lm_pnpbios.c | 160 +++
sys/arch/i386/pnpbios/lpt_pnpbios.c | 96 +
sys/arch/i386/pnpbios/npx_pnpbios.c | 120 ++
sys/arch/i386/pnpbios/pciide_pnpbios.c | 161 +++
sys/arch/i386/pnpbios/pnpbios.c | 1607 ++++++++++++++++++++++++++++++++
sys/arch/i386/pnpbios/sb_pnpbios.c | 123 ++
35 files changed, 9459 insertions(+), 0 deletions(-)
diffs (truncated from 9599 to 300 lines):
diff -r f326b0dd8fb8 -r a3f07f08b299 sys/arch/i386/i386/compat_13_machdep.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/i386/i386/compat_13_machdep.c Thu Nov 15 07:03:30 2001 +0000
@@ -0,0 +1,132 @@
+/* $NetBSD: compat_13_machdep.c,v 1.7.2.2 2001/11/15 07:03:30 lukem Exp $ */
+
+/*-
+ * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Charles M. Hannum.
+ *
+ * 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/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: compat_13_machdep.c,v 1.7.2.2 2001/11/15 07:03:30 lukem Exp $");
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/signalvar.h>
+#include <sys/kernel.h>
+#include <sys/map.h>
+#include <sys/proc.h>
+#include <sys/user.h>
+#include <sys/mount.h>
+#include <sys/syscallargs.h>
+
+#ifdef VM86
+#include <machine/vm86.h>
+#endif
+
+int
+compat_13_sys_sigreturn(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+ struct compat_13_sys_sigreturn_args /* {
+ syscallarg(struct sigcontext13 *) sigcntxp;
+ } */ *uap = v;
+ struct sigcontext13 *scp, context;
+ struct trapframe *tf;
+ sigset_t mask;
+
+ /*
+ * The trampoline code hands us the context.
+ * It is unsafe to keep track of it ourselves, in the event that a
+ * program jumps out of a signal handler.
+ */
+ scp = SCARG(uap, sigcntxp);
+ if (copyin((caddr_t)scp, &context, sizeof(*scp)) != 0)
+ return (EFAULT);
+
+ /* Restore register context. */
+ tf = p->p_md.md_regs;
+#ifdef VM86
+ if (context.sc_eflags & PSL_VM) {
+ void syscall_vm86 __P((struct trapframe));
+
+ tf->tf_vm86_gs = context.sc_gs;
+ tf->tf_vm86_fs = context.sc_fs;
+ tf->tf_vm86_es = context.sc_es;
+ tf->tf_vm86_ds = context.sc_ds;
+ set_vflags(p, context.sc_eflags);
+ p->p_md.md_syscall = syscall_vm86;
+ } else
+#endif
+ {
+ /*
+ * Check for security violations. If we're returning to
+ * protected mode, the CPU will validate the segment registers
+ * automatically and generate a trap on violations. We handle
+ * the trap, rather than doing all of the checking here.
+ */
+ if (((context.sc_eflags ^ tf->tf_eflags) & PSL_USERSTATIC) != 0 ||
+ !USERMODE(context.sc_cs, context.sc_eflags))
+ return (EINVAL);
+
+ tf->tf_gs = context.sc_gs;
+ tf->tf_fs = context.sc_fs;
+ tf->tf_es = context.sc_es;
+ tf->tf_ds = context.sc_ds;
+ tf->tf_eflags = context.sc_eflags;
+ }
+ tf->tf_edi = context.sc_edi;
+ tf->tf_esi = context.sc_esi;
+ tf->tf_ebp = context.sc_ebp;
+ tf->tf_ebx = context.sc_ebx;
+ tf->tf_edx = context.sc_edx;
+ tf->tf_ecx = context.sc_ecx;
+ tf->tf_eax = context.sc_eax;
+ tf->tf_eip = context.sc_eip;
+ tf->tf_cs = context.sc_cs;
+ tf->tf_esp = context.sc_esp;
+ tf->tf_ss = context.sc_ss;
+
+ /* Restore signal stack. */
+ if (context.sc_onstack & SS_ONSTACK)
+ p->p_sigctx.ps_sigstk.ss_flags |= SS_ONSTACK;
+ else
+ p->p_sigctx.ps_sigstk.ss_flags &= ~SS_ONSTACK;
+
+ /* Restore signal mask. */
+ native_sigset13_to_sigset(&context.sc_mask, &mask);
+ (void) sigprocmask1(p, SIG_SETMASK, &mask, 0);
+
+ return (EJUSTRETURN);
+}
diff -r f326b0dd8fb8 -r a3f07f08b299 sys/arch/i386/i386/dkbad.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/i386/i386/dkbad.c Thu Nov 15 07:03:30 2001 +0000
@@ -0,0 +1,71 @@
+/* $NetBSD: dkbad.c,v 1.5.2.2 2001/11/15 07:03:30 lukem Exp $ */
+
+/*-
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * William Jolitz.
+ *
+ * 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.
+ *
+ * @(#)dkbad.c 5.4 (Berkeley) 1/19/91
+ */
+
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: dkbad.c,v 1.5.2.2 2001/11/15 07:03:30 lukem Exp $");
+
+#ifndef NOBADSECT
+#include <sys/param.h>
+#include <sys/buf.h>
+#include <sys/dkbad.h>
+
+/*
+ * Search the bad sector table looking for
+ * the specified sector. Return index if found.
+ * Return -1 if not found.
+ */
+
+isbad(bt, cyl, trk, sec)
+ register struct dkbad *bt;
+{
+ register int i;
+ register long blk, bblk;
+
+ blk = ((long)cyl << 16) + (trk << 8) + sec;
+ for (i = 0; i < 126; i++) {
+ bblk = ((long)bt->bt_bad[i].bt_cyl << 16) + bt->bt_bad[i].bt_trksec;
+ if (blk == bblk)
+ return (i);
+ if (blk < bblk || bblk < 0)
+ break;
+ }
+ return (-1);
+}
+#endif
diff -r f326b0dd8fb8 -r a3f07f08b299 sys/arch/i386/i386/ipkdb_glue.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/i386/i386/ipkdb_glue.c Thu Nov 15 07:03:30 2001 +0000
@@ -0,0 +1,147 @@
+/* $NetBSD: ipkdb_glue.c,v 1.3.2.2 2001/11/15 07:03:30 lukem Exp $ */
+
+/*
+ * Copyright (C) 2000 Wolfgang Solfrank.
+ * Copyright (C) 2000 TooLs GmbH.
+ * 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 TooLs GmbH.
+ * 4. The name of TooLs GmbH may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``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 TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NO TLIMITED 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, STRUCT 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/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: ipkdb_glue.c,v 1.3.2.2 2001/11/15 07:03:30 lukem Exp $");
+
+#include "opt_ipkdb.h"
+
+#include <sys/param.h>
+#include <sys/systm.h>
+
+#include <ipkdb/ipkdb.h>
+
+#include <machine/ipkdb.h>
+#include <machine/psl.h>
+
+int ipkdbregs[NREG];
+
+int ipkdb_trap_glue __P((struct trapframe));
+
+#ifdef IPKDB_NE_PCI
+#include <dev/pci/pcivar.h>
+
+int ne_pci_ipkdb_attach __P((struct ipkdb_if *, bus_space_tag_t, /* XXX */
+ pci_chipset_tag_t, int, int));
+#endif
+
+static char ipkdb_mode = IPKDB_CMD_EXIT;
+
+void
+ipkdbinit()
+{
+}
+
+int
+ipkdb_poll()
+{
+ /* For now */
+ return 0;
+}
+
+void
+ipkdb_trap()
+{
+ ipkdb_mode = IPKDB_CMD_STEP;
+ __asm __volatile ("pushf; pop %%eax; orl %0,%%eax; push %%eax; popf"
+ :: "i"(PSL_T));
+}
+
+int
+ipkdb_trap_glue(frame)
+ struct trapframe frame;
+{
+ if (ISPL(frame.tf_cs) != SEL_KPL)
+ return 0;
+
Home |
Main Index |
Thread Index |
Old Index