summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1999-02-11 19:37:44 +0000
committerMike Smith <msmith@FreeBSD.org>1999-02-11 19:37:44 +0000
commita86cd76be1fc1d97602040fac97e14adfd32df73 (patch)
treefc7b96c6325e949bcc2a0c5a28aee93d57b943a8
parent566569370568caa4bd428271466ad347886a2500 (diff)
Notes
-rw-r--r--sys/i386/i386/machdep.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index c0203ac38297..a00b7e668c43 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.322 1999/01/15 17:24:05 msmith Exp $
+ * $Id: machdep.c,v 1.322.2.1 1999/02/03 14:12:01 dg Exp $
*/
#include "apm.h"
@@ -860,6 +860,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