summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-12-04 05:36:35 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-12-04 05:36:35 +0000
commit9b2fbf28b2ec73a28a0c21c813ab4497897a8ded (patch)
treeb52963b1cfe83d2e62a0813bf8fbdc6a7c30070f /sys/arch/m88k
parent05f74a02e12260a41da61ceca8f39b8b4efef649 (diff)
Fix userland vs system test in errata #16 handling.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/m88k/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c
index 2d1d4d225da..19b2c18257d 100644
--- a/sys/arch/m88k/m88k/trap.c
+++ b/sys/arch/m88k/m88k/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.55 2007/12/02 21:34:34 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.56 2007/12/04 05:36:34 miod Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
* Copyright (c) 1998 Steve Murphree, Jr.
@@ -648,7 +648,7 @@ m88110_trap(u_int type, struct trapframe *frame)
* Check the instruction at the (backed up) exip.
* If it is a jsr.n, abort.
*/
- if (USERMODE(frame->tf_epsr)) {
+ if (!USERMODE(frame->tf_epsr)) {
instr = *(u_int *)frame->tf_exip;
if (instr == 0xf400cc01)
panic("mc88110 errata #16, exip %p enip %p",