From 1f4fb6dff81b57745a2bf81d887bce723f9e0803 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Sat, 6 Dec 1997 06:19:19 +0000 Subject: [PATCH] Sync with sys/i386/i386/trap.c revision 1.119. --- sys/pc98/i386/trap.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sys/pc98/i386/trap.c b/sys/pc98/i386/trap.c index 8e6b2db7dda..b2c6debfac3 100644 --- a/sys/pc98/i386/trap.c +++ b/sys/pc98/i386/trap.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)trap.c 7.4 (Berkeley) 5/13/91 - * $Id: trap.c,v 1.40 1997/12/03 09:46:34 kato Exp $ + * $Id: trap.c,v 1.41 1997/12/05 11:48:53 kato Exp $ */ /* @@ -50,6 +50,7 @@ #include #include #include +#include #include #include #include @@ -1037,6 +1038,8 @@ syscall(frame) p->p_retval[0] = 0; p->p_retval[1] = frame.tf_edx; + STOPEVENT(p, S_SCE, callp->sy_narg); + error = (*callp->sy_call)(p, args); switch (error) { @@ -1087,6 +1090,14 @@ syscall(frame) if (KTRPOINT(p, KTR_SYSRET)) ktrsysret(p->p_tracep, code, error, p->p_retval[0]); #endif + + /* + * This works because errno is findable through the + * register set. If we ever support an emulation where this + * is not the case, this code will need to be revisited. + */ + STOPEVENT(p, S_SCX, code); + } /* -- 2.45.2