Fixed error svr4 error code mapping; my old attempt was a noop.

This commit is contained in:
christos 1994-11-16 20:14:42 +00:00
parent 38483bbbf0
commit fc8e694056
1 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.62 1994/11/14 05:53:51 christos Exp $ */
/* $NetBSD: trap.c,v 1.63 1994/11/16 20:14:42 christos Exp $ */
#undef DEBUG
#define DEBUG
@ -577,16 +577,15 @@ syscall(frame)
default:
bad:
#ifdef COMPAT_SVR4
if (p->p_emul == EMUL_IBCS2_ELF)
error = svr4_error[error];
#endif
frame.tf_eax = error;
frame.tf_eflags |= PSL_C; /* carry bit */
break;
}
#ifdef COMPAT_SVR4
if (p->p_emul == EMUL_IBCS2_ELF)
error = svr4_error[error];
#endif
#ifdef SYSCALL_DEBUG
scdebug_ret(p, code, error, rval[0]);
#endif