diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-12-12 20:35:38 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-12-12 20:35:38 +0000 |
commit | 7966177fd8d3c5ba05b23bab411c8f326206da38 (patch) | |
tree | 518539f0c26c31c7062e7841744e7fc6d4d94ae7 /sys/arch | |
parent | 7797bea4e2ea9d3114f494211451f4e6260fe0e7 (diff) |
Make non-88110 kernels (aviion, luna88k) kernels compile again.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/m88k/m88k/trap.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c index b174e004e77..9bd3e9c812f 100644 --- a/sys/arch/m88k/m88k/trap.c +++ b/sys/arch/m88k/m88k/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.59 2007/12/08 18:39:50 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.60 2007/12/12 20:35:37 miod Exp $ */ /* * Copyright (c) 2004, Miodrag Vallat. * Copyright (c) 1998 Steve Murphree, Jr. @@ -1849,13 +1849,18 @@ cache_flush(struct trapframe *tf) len -= count; } +#ifdef M88100 if (CPU_IS88100) { tf->tf_snip = tf->tf_snip & ~NIP_E; tf->tf_sfip = tf->tf_sfip & ~FIP_E; - } else { + } +#endif +#ifdef M88110 + if (CPU_IS88110) { /* skip instruction */ m88110_skip_insn(tf); } +#endif userret(p); } |