diff options
author | kato <kato@FreeBSD.org> | 1999-02-12 09:15:33 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1999-02-12 09:15:33 +0000 |
commit | 22876d91387e8dfd0214a5d6be980a2bbcc8523d (patch) | |
tree | fdd32dd0dd601e7761b93403d4552a00b0dc2770 | |
parent | 95c394b70edc1f3edc419d56b785b9bc25754d9b (diff) | |
download | FreeBSD-src-22876d91387e8dfd0214a5d6be980a2bbcc8523d.zip FreeBSD-src-22876d91387e8dfd0214a5d6be980a2bbcc8523d.tar.gz |
Sync with sys/i386/i386/machdep.c revision 1.325.
-rw-r--r-- | sys/pc98/i386/machdep.c | 9 | ||||
-rw-r--r-- | 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 b840362..b451be5 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 b840362..b451be5 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 |