summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1997-11-25 09:53:44 +0000
committerkato <kato@FreeBSD.org>1997-11-25 09:53:44 +0000
commit57d6b2a9cfb53f08954050aea793371461b24f62 (patch)
treeafed7d5221d624210c47088fc049da41f7d18b42
parent119e87395fc7716c83ada70fd03dc7320da0fe65 (diff)
downloadFreeBSD-src-57d6b2a9cfb53f08954050aea793371461b24f62.zip
FreeBSD-src-57d6b2a9cfb53f08954050aea793371461b24f62.tar.gz
Sync with sys/i386/i386/trap.c revision 1.115.
-rw-r--r--sys/pc98/i386/trap.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/pc98/i386/trap.c b/sys/pc98/i386/trap.c
index 328b4d9..2b06769 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.37 1997/10/12 11:57:23 kato Exp $
+ * $Id: trap.c,v 1.38 1997/11/07 12:53:49 kato Exp $
*/
/*
@@ -50,6 +50,8 @@
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/kernel.h>
+#include <sys/resourcevar.h>
+#include <sys/signalvar.h>
#include <sys/syscall.h>
#include <sys/sysent.h>
#include <sys/vmmeter.h>
@@ -67,16 +69,17 @@
#include <vm/vm_page.h>
#include <vm/vm_extern.h>
-#include <sys/user.h>
-
#include <machine/cpu.h>
#include <machine/ipl.h>
#include <machine/md_var.h>
-#include <machine/psl.h>
-#include <machine/../isa/intr_machdep.h>
+#include <machine/pcb.h>
+#ifdef SMP
#include <machine/smp.h>
+#endif
#include <machine/tss.h>
+#include <i386/isa/intr_machdep.h>
+
#ifdef POWERFAIL_NMI
#include <sys/syslog.h>
#include <machine/clock.h>
@@ -957,10 +960,11 @@ syscall(frame)
int args[8];
u_int code;
- sticks = p->p_sticks;
+#ifdef DIAGNOSTIC
if (ISPL(frame.tf_cs) != SEL_UPL)
panic("syscall");
-
+#endif
+ sticks = p->p_sticks;
p->p_md.md_regs = &frame;
params = (caddr_t)frame.tf_esp + sizeof(int);
code = frame.tf_eax;
OpenPOWER on IntegriCloud