diff options
-rw-r--r-- | sys/conf/files.pc98 | 3 | ||||
-rw-r--r-- | sys/pc98/conf/files.pc98 | 3 | ||||
-rw-r--r-- | sys/pc98/i386/trap.c | 9 |
3 files changed, 9 insertions, 6 deletions
diff --git a/sys/conf/files.pc98 b/sys/conf/files.pc98 index a112060..c4fdae2 100644 --- a/sys/conf/files.pc98 +++ b/sys/conf/files.pc98 @@ -3,7 +3,7 @@ # # modified for PC-9801 # -# $Id: files.pc98,v 1.33 1997/08/27 08:47:03 kato Exp $ +# $Id: files.pc98,v 1.34 1997/08/28 14:21:11 kato Exp $ # aic7xxx_asm optional ahc device-driver \ dependency "$S/dev/aic7xxx/*.[chyl]" \ @@ -83,6 +83,7 @@ i386/i386/sys_machdep.c standard pc98/i386/trap.c standard pc98/i386/userconfig.c optional userconfig i386/i386/vm_machdep.c standard +i386/i386/vm86.c optional vm86 i386/ibcs2/ibcs2_fcntl.c optional ibcs2 i386/ibcs2/ibcs2_stat.c optional ibcs2 i386/ibcs2/ibcs2_ipc.c optional ibcs2 diff --git a/sys/pc98/conf/files.pc98 b/sys/pc98/conf/files.pc98 index a112060..c4fdae2 100644 --- a/sys/pc98/conf/files.pc98 +++ b/sys/pc98/conf/files.pc98 @@ -3,7 +3,7 @@ # # modified for PC-9801 # -# $Id: files.pc98,v 1.33 1997/08/27 08:47:03 kato Exp $ +# $Id: files.pc98,v 1.34 1997/08/28 14:21:11 kato Exp $ # aic7xxx_asm optional ahc device-driver \ dependency "$S/dev/aic7xxx/*.[chyl]" \ @@ -83,6 +83,7 @@ i386/i386/sys_machdep.c standard pc98/i386/trap.c standard pc98/i386/userconfig.c optional userconfig i386/i386/vm_machdep.c standard +i386/i386/vm86.c optional vm86 i386/ibcs2/ibcs2_fcntl.c optional ibcs2 i386/ibcs2/ibcs2_stat.c optional ibcs2 i386/ibcs2/ibcs2_ipc.c optional ibcs2 diff --git a/sys/pc98/i386/trap.c b/sys/pc98/i386/trap.c index 17a24fe..cdd9380 100644 --- a/sys/pc98/i386/trap.c +++ b/sys/pc98/i386/trap.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)trap.c 7.4 (Berkeley) 5/13/91 - * $Id: trap.c,v 1.32 1997/08/21 10:12:48 kato Exp $ + * $Id: trap.c,v 1.33 1997/08/27 08:43:21 kato 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)); @@ -266,12 +265,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 */ |