summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2017-03-09 20:31:42 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2017-03-09 20:31:42 +0000
commitce0bfb6fce79bdfd67dd4631ab069317487dc3df (patch)
tree9775eed06caa7cbc590abc1324bf01cfa5e1d01d
parentafcd40e6b4695bbb4275aa6e4e6f30f2dad5d50f (diff)
There are no compat emulations left so we never do errno mapping:
eliminate the last use of e_errno. ok tom@ mpi@ kettenis@ visa@
-rw-r--r--sys/arch/i386/i386/trap.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index a573f77a57d..f8e63d29385 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.127 2017/03/03 20:49:47 bluhm Exp $ */
+/* $OpenBSD: trap.c,v 1.128 2017/03/09 20:31:41 guenther Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
@@ -625,10 +625,7 @@ syscall(struct trapframe *frame)
break;
default:
bad:
- if (p->p_p->ps_emul->e_errno && error >= 0 && error <= ELAST)
- frame->tf_eax = p->p_p->ps_emul->e_errno[error];
- else
- frame->tf_eax = error;
+ frame->tf_eax = error;
frame->tf_eflags |= PSL_C; /* carry bit */
break;
}