summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2012-12-31 06:46:15 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2012-12-31 06:46:15 +0000
commitcbe7dde9cc583bad9802303b856b311c8c0355fe (patch)
treef003db53909e7a37387a2e0a9a299dfb204acddc /sys/arch/m88k
parent28ec7dd24084fdb86a58a197069a7c048851071e (diff)
Remove emulation errno mapping code from platforms that no longer have
non-native emulations. ok miod@
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/m88k/trap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c
index 4bafc17b4df..e8cca8c357e 100644
--- a/sys/arch/m88k/m88k/trap.c
+++ b/sys/arch/m88k/m88k/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.82 2012/08/07 17:17:46 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.83 2012/12/31 06:46:13 guenther Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
* Copyright (c) 1998 Steve Murphree, Jr.
@@ -1235,8 +1235,6 @@ m88100_syscall(register_t code, struct trapframe *tf)
break;
default:
bad:
- if (p->p_emul->e_errno)
- error = p->p_emul->e_errno[error];
tf->tf_r[2] = error;
tf->tf_epsr |= PSR_C; /* fail */
tf->tf_snip = tf->tf_snip & ~NIP_E;
@@ -1360,8 +1358,6 @@ m88110_syscall(register_t code, struct trapframe *tf)
break;
default:
bad:
- if (p->p_emul->e_errno)
- error = p->p_emul->e_errno[error];
tf->tf_r[2] = error;
tf->tf_epsr |= PSR_C; /* fail */
/* skip one instruction */