diff options
author | kato <kato@FreeBSD.org> | 1997-08-29 08:15:57 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1997-08-29 08:15:57 +0000 |
commit | 4593c74e11ce58a5b06b5bb2c5928abd5036fb93 (patch) | |
tree | a35b28bffe4f756ce80adc66a9163b3985255f24 /sys | |
parent | 5b5d694bfba7ce510ad042b8612bf0412362431c (diff) | |
download | FreeBSD-src-4593c74e11ce58a5b06b5bb2c5928abd5036fb93.zip FreeBSD-src-4593c74e11ce58a5b06b5bb2c5928abd5036fb93.tar.gz |
Synchronize with sys/i386/conf/files.i386 and sys/i386/i386/trap.c
revisions 1.173 and 1.109, respectively.
Diffstat (limited to 'sys')
-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 */ |