diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-06-26 22:45:54 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-06-26 22:45:54 +0000 |
commit | 116cce4edbd75135c1e24c5896f274e8fb7958e9 (patch) | |
tree | 459809c4980b40c7d518b0b208ecd03b2ebe8d23 /sys/arch | |
parent | f7fc8ebc3aae64a9b3c1848d1d6dd39c67f3eac1 (diff) |
Make the check for !usermode in syscal a DIAGNOSTIC.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/trap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index ea787245e80..9609bef275f 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.32 2000/06/08 22:25:19 niklas Exp $ */ +/* $OpenBSD: trap.c,v 1.33 2000/06/26 22:45:53 art Exp $ */ /* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */ #undef DEBUG @@ -612,8 +612,10 @@ syscall(frame) #else cnt.v_syscall++; #endif +#ifdef DIAGNOSTIC if (!USERMODE(frame.tf_cs, frame.tf_eflags)) panic("syscall"); +#endif p = curproc; sticks = p->p_sticks; p->p_md.md_regs = &frame; |