summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1999-02-12 09:15:33 +0000
committerkato <kato@FreeBSD.org>1999-02-12 09:15:33 +0000
commit22876d91387e8dfd0214a5d6be980a2bbcc8523d (patch)
treefdd32dd0dd601e7761b93403d4552a00b0dc2770 /sys/pc98
parent95c394b70edc1f3edc419d56b785b9bc25754d9b (diff)
downloadFreeBSD-src-22876d91387e8dfd0214a5d6be980a2bbcc8523d.zip
FreeBSD-src-22876d91387e8dfd0214a5d6be980a2bbcc8523d.tar.gz
Sync with sys/i386/i386/machdep.c revision 1.325.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/i386/machdep.c9
-rw-r--r--sys/pc98/pc98/machdep.c9
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
OpenPOWER on IntegriCloud