summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-03-09 22:29:02 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-03-09 22:29:02 +0000
commitdfe12ba4523462676ca1ae93f963c69aed803c37 (patch)
tree97de8411b372b3ea12668837007d52b9d68f8291
parent2e1581ec8b742194f10b8bf85b6a79cf85affce0 (diff)
Turn FAULTCHK in a real statement-like macro.
-rw-r--r--sys/arch/vax/vax/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/vax/vax/trap.c b/sys/arch/vax/vax/trap.c
index a080b7a31da..a95a59d5d0f 100644
--- a/sys/arch/vax/vax/trap.c
+++ b/sys/arch/vax/vax/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.27 2003/05/27 23:05:41 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.28 2004/03/09 22:29:01 miod Exp $ */
/* $NetBSD: trap.c,v 1.47 1999/08/21 19:26:20 matt Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -93,13 +93,13 @@ int no_traps = 18;
#define USERMODE(framep) ((((framep)->psl) & (PSL_U)) == PSL_U)
#define FAULTCHK \
- if (p->p_addr->u_pcb.iftrap) { \
+ do if (p->p_addr->u_pcb.iftrap) { \
frame->pc = (unsigned)p->p_addr->u_pcb.iftrap; \
frame->psl &= ~PSL_FPD; \
frame->r0 = EFAULT;/* for copyin/out */ \
frame->r1 = -1; /* for fetch/store */ \
return; \
- }
+ } while (0)
/*
* userret: