Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/alpha support emulation-specified errno mappi...



details:   https://anonhg.NetBSD.org/src/rev/b26ded8d137f
branches:  trunk
changeset: 472151:b26ded8d137f
user:      cgd <cgd%NetBSD.org@localhost>
date:      Fri Apr 23 05:43:02 1999 +0000

description:
support emulation-specified errno mapping tables

diffstat:

 sys/arch/alpha/alpha/trap.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 0dc130a61a64 -r b26ded8d137f sys/arch/alpha/alpha/trap.c
--- a/sys/arch/alpha/alpha/trap.c       Fri Apr 23 05:37:41 1999 +0000
+++ b/sys/arch/alpha/alpha/trap.c       Fri Apr 23 05:43:02 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.44 1999/04/20 21:16:59 thorpej Exp $ */
+/* $NetBSD: trap.c,v 1.45 1999/04/23 05:43:02 cgd Exp $ */
 
 /*
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.44 1999/04/20 21:16:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.45 1999/04/23 05:43:02 cgd Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -628,6 +628,8 @@
        case EJUSTRETURN:
                break;
        default:
+               if (p->p_emul->e_errno)
+                       error = p->p_emul->e_errno[error];
                framep->tf_regs[FRAME_V0] = error;
                framep->tf_regs[FRAME_A3] = 1;
                break;



Home | Main Index | Thread Index | Old Index