From 28791bce4464424b2d8b641d340ec58ed77666be Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Fri, 12 Feb 1999 09:15:33 +0000 Subject: [PATCH] Sync with sys/i386/i386/machdep.c revision 1.325. --- sys/pc98/i386/machdep.c | 9 ++++++++- sys/pc98/pc98/machdep.c | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index b840362e1a5..b451be5d19c 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.106 1999/01/29 10:43:09 kato Exp $ + * $Id: machdep.c,v 1.107 1999/02/04 09:55:42 kato Exp $ */ #include "apm.h" @@ -873,6 +873,13 @@ setregs(p, entry, stack) /* Initialize the npx (if any) for the current process. */ npxinit(__INITIAL_NPXCW__); #endif + + /* + * XXX - Linux emulator + * Make sure sure edx is 0x0 on entry. Linux binaries depend + * on it. + */ + p->p_retval[1] = 0; } static int diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index b840362e1a5..b451be5d19c 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.106 1999/01/29 10:43:09 kato Exp $ + * $Id: machdep.c,v 1.107 1999/02/04 09:55:42 kato Exp $ */ #include "apm.h" @@ -873,6 +873,13 @@ setregs(p, entry, stack) /* Initialize the npx (if any) for the current process. */ npxinit(__INITIAL_NPXCW__); #endif + + /* + * XXX - Linux emulator + * Make sure sure edx is 0x0 on entry. Linux binaries depend + * on it. + */ + p->p_retval[1] = 0; } static int