Generate dependencies on the VM86 option.

This commit is contained in:
thorpej 1998-01-15 22:25:52 +00:00
parent 6254765e6a
commit cf591e644b
15 changed files with 48 additions and 15 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: files.i386,v 1.100 1998/01/15 19:47:36 thorpej Exp $
# $NetBSD: files.i386,v 1.101 1998/01/15 22:25:52 thorpej Exp $
#
# new style config file for i386 architecture
#
@ -11,6 +11,9 @@ maxusers 2 16 64
# Processor type options.
defopt opt_cputype.h I386_CPU I486_CPU I586_CPU I686_CPU
# VM86 emulation
defopt VM86
file arch/i386/i386/autoconf.c
file arch/i386/i386/conf.c
file arch/i386/i386/db_disasm.c ddb

View File

@ -1,4 +1,4 @@
/* $NetBSD: freebsd_machdep.c,v 1.13 1997/10/16 04:23:36 mycroft Exp $ */
/* $NetBSD: freebsd_machdep.c,v 1.14 1998/01/15 22:25:54 thorpej Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995, 1996 Charles M. Hannum. All rights reserved.
@ -40,6 +40,8 @@
* @(#)machdep.c 7.4 (Berkeley) 6/3/91
*/
#include "opt_vm86.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signalvar.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_machdep.c,v 1.34 1997/10/16 04:23:38 mycroft Exp $ */
/* $NetBSD: linux_machdep.c,v 1.35 1998/01/15 22:25:54 thorpej Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@ -31,6 +31,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "opt_vm86.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signalvar.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.180 1998/01/15 19:47:37 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.181 1998/01/15 22:25:56 thorpej Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995, 1997
@ -41,6 +41,7 @@
*/
#include "opt_cputype.h"
#include "opt_vm86.h"
#include "npx.h"
#include "assym.h"

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.271 1998/01/15 19:47:39 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.272 1998/01/15 22:25:57 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -79,6 +79,7 @@
*/
#include "opt_cputype.h"
#include "opt_vm86.h"
#include <sys/param.h>
#include <sys/systm.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: process_machdep.c,v 1.23 1997/11/13 03:16:50 mycroft Exp $ */
/* $NetBSD: process_machdep.c,v 1.24 1998/01/15 22:25:59 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997
@ -64,6 +64,8 @@
* Set the process's program counter.
*/
#include "opt_vm86.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_machdep.c,v 1.29 1997/10/16 04:23:39 mycroft Exp $ */
/* $NetBSD: svr4_machdep.c,v 1.30 1998/01/15 22:26:00 thorpej Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -27,6 +27,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "opt_vm86.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/namei.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_machdep.c,v 1.35 1997/11/13 03:16:51 mycroft Exp $ */
/* $NetBSD: sys_machdep.c,v 1.36 1998/01/15 22:26:00 thorpej Exp $ */
/*-
* Copyright (c) 1995, 1997
@ -40,6 +40,8 @@
* @(#)sys_machdep.c 5.5 (Berkeley) 1/19/91
*/
#include "opt_vm86.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/ioctl.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.106 1997/12/07 21:28:56 fvdl Exp $ */
/* $NetBSD: trap.c,v 1.107 1998/01/15 22:26:01 thorpej Exp $ */
/*-
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@ -43,6 +43,8 @@
* 386 Trap and System call handling
*/
#include "opt_vm86.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.41 1997/11/27 11:53:58 bouyer Exp $ */
/* $NetBSD: cpu.h,v 1.42 1998/01/15 22:26:03 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -172,6 +172,9 @@ int i386_set_ldt __P((struct proc *, char *, register_t *));
void isa_defaultirq __P((void));
int isa_nmi __P((void));
#if !defined(_LKM)
#include "opt_vm86.h"
#endif
#ifdef VM86
/* vm86.c */
void vm86_gpfault __P((struct proc *, int));

View File

@ -1,4 +1,4 @@
/* $NetBSD: psl.h,v 1.31 1997/03/19 03:52:02 mycroft Exp $ */
/* $NetBSD: psl.h,v 1.32 1998/01/15 22:26:03 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -66,6 +66,9 @@
#define PSL_MBZ 0xffc08028 /* must be zero bits */
#define PSL_USERSET (PSL_MBO | PSL_I)
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_vm86.h"
#endif
#ifdef VM86
#define PSL_USERSTATIC (PSL_MBO | PSL_MBZ | PSL_I | PSL_IOPL | PSL_NT | PSL_VIF | PSL_VIP)
#else

View File

@ -1,4 +1,4 @@
/* $NetBSD: segments.h,v 1.26 1997/11/13 03:16:53 mycroft Exp $ */
/* $NetBSD: segments.h,v 1.27 1998/01/15 22:26:04 thorpej Exp $ */
/*-
* Copyright (c) 1995, 1997
@ -63,6 +63,10 @@
#define GSEL(s,r) (((s) << 3) | r) /* a global selector */
#define LSEL(s,r) (((s) << 3) | r | SEL_LDT) /* a local selector */
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_vm86.h"
#endif
#ifdef VM86
#define USERMODE(c, f) (ISPL(c) == SEL_UPL || ((f) & PSL_VM) != 0)
#define KERNELMODE(c, f) (ISPL(c) == SEL_KPL && ((f) & PSL_VM) == 0)

View File

@ -1,4 +1,4 @@
/* $NetBSD: icu.s,v 1.51 1997/11/16 12:30:00 mycroft Exp $ */
/* $NetBSD: icu.s,v 1.52 1998/01/15 22:26:05 thorpej Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995, 1997 Charles M. Hannum. All rights reserved.
@ -29,6 +29,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "opt_vm86.h"
#include <net/netisr.h>
.data

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_machdep.c,v 1.34 1997/10/16 04:23:38 mycroft Exp $ */
/* $NetBSD: linux_machdep.c,v 1.35 1998/01/15 22:25:54 thorpej Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@ -31,6 +31,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "opt_vm86.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signalvar.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_machdep.c,v 1.34 1997/10/16 04:23:38 mycroft Exp $ */
/* $NetBSD: linux_machdep.c,v 1.35 1998/01/15 22:25:54 thorpej Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@ -31,6 +31,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "opt_vm86.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signalvar.h>