summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/trap.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-11-24 13:25:37 +0000
committerbde <bde@FreeBSD.org>1997-11-24 13:25:37 +0000
commit48ccf62b8e7a2fad92572ca6db52bb3ce04789f9 (patch)
tree102879fa37ea138df5f04931cc9fdc89d4ad0010 /sys/amd64/amd64/trap.c
parent31e60d8e266eee05c2cd782b041c80ea25c76abc (diff)
downloadFreeBSD-src-48ccf62b8e7a2fad92572ca6db52bb3ce04789f9.zip
FreeBSD-src-48ccf62b8e7a2fad92572ca6db52bb3ce04789f9.tar.gz
Fixed some #include messes.
Hid the check of the user %cs in syscall() under `#ifdef DIAGNOSTIC'.
Diffstat (limited to 'sys/amd64/amd64/trap.c')
-rw-r--r--sys/amd64/amd64/trap.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 4cab4c1..e53b015 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.113 1997/10/10 12:42:48 peter Exp $
+ * $Id: trap.c,v 1.114 1997/11/06 19:28:09 phk 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>
@@ -907,10 +910,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