summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_trap.c
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>1997-08-28 14:36:56 +0000
committerjlemon <jlemon@FreeBSD.org>1997-08-28 14:36:56 +0000
commitada62b471afc09bbc6bb921f07607358e3d087c8 (patch)
tree281f48487266b3baf6fd5b4cb6ed2e8d2ae012a9 /sys/kern/subr_trap.c
parenta7e970a8d935d4eea311ff14fb5bbbbb6480b72c (diff)
downloadFreeBSD-src-ada62b471afc09bbc6bb921f07607358e3d087c8.zip
FreeBSD-src-ada62b471afc09bbc6bb921f07607358e3d087c8.tar.gz
Remove the vm86 support as an LKM, and link it directly into the kernel
if 'options "VM86"' is in the config file. The LKM was really for development, and has probably outlived its usefulness.
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r--sys/kern/subr_trap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index 5895361..b27583f 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.107 1997/08/21 06:32:39 charnier Exp $
+ * $Id: trap.c,v 1.108 1997/08/26 18:10:33 peter Exp $
*/
/*
@@ -85,7 +85,6 @@
extern struct i386tss common_tss;
-int (*vm86_emulate) __P((struct vm86frame *));
int (*pmath_emulate) __P((struct trapframe *));
extern void trap __P((struct trapframe frame));
@@ -246,12 +245,14 @@ trap(frame)
*/
case T_PROTFLT: /* general protection fault */
case T_STKFLT: /* stack fault */
- if (vm86_emulate && (frame.tf_eflags & PSL_VM)) {
- i = (*vm86_emulate)((struct vm86frame *)&frame);
+#ifdef VM86
+ if (frame.tf_eflags & PSL_VM) {
+ i = vm86_emulate((struct vm86frame *)&frame);
if (i == 0)
goto out;
break;
}
+#endif /* VM86 */
/* FALL THROUGH */
case T_SEGNPFLT: /* segment not present fault */
OpenPOWER on IntegriCloud