diff options
author | bde <bde@FreeBSD.org> | 1997-11-24 13:25:37 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-11-24 13:25:37 +0000 |
commit | 48ccf62b8e7a2fad92572ca6db52bb3ce04789f9 (patch) | |
tree | 102879fa37ea138df5f04931cc9fdc89d4ad0010 /sys/kern/subr_trap.c | |
parent | 31e60d8e266eee05c2cd782b041c80ea25c76abc (diff) | |
download | FreeBSD-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/kern/subr_trap.c')
-rw-r--r-- | sys/kern/subr_trap.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 4cab4c1..e53b015 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.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; |