diff options
author | 2007-12-12 20:35:37 +0000 | |
---|---|---|
committer | 2007-12-12 20:35:37 +0000 | |
commit | a174b93be43861e89a743df6bbe7dadc0e10a8d8 (patch) | |
tree | 38100ed0b11e84cd975bbc5c777e6502aa131ea4 | |
parent | 2nd two extra fans on the 5027 are encoded differently; diff (diff) | |
download | wireguard-openbsd-a174b93be43861e89a743df6bbe7dadc0e10a8d8.tar.xz wireguard-openbsd-a174b93be43861e89a743df6bbe7dadc0e10a8d8.zip |
Make non-88110 kernels (aviion, luna88k) kernels compile again.
-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); } |