summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-27 06:14:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-27 06:14:49 +0000
commit1f93e978db8af006a445eac5092de3b49a8bc737 (patch)
treeac77b953607252bd03c8b3f799e28bf7f6e4647c
parent7416350985477964cbecf25b3d826e4a4487255e (diff)
from netbsd; copy md_flags at fork time (fixes npx problems)
-rw-r--r--sys/arch/i386/i386/vm_machdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arch/i386/i386/vm_machdep.c b/sys/arch/i386/i386/vm_machdep.c
index 2b4452abf56..9603b2b77fe 100644
--- a/sys/arch/i386/i386/vm_machdep.c
+++ b/sys/arch/i386/i386/vm_machdep.c
@@ -99,6 +99,8 @@ cpu_fork(p1, p2)
npxsave();
#endif
+ p2->p_md.md_flags = p1->p_md.md_flags;
+
/* Sync curpcb (which is presumably p1's PCB) and copy it to p2. */
savectx(curpcb);
*pcb = p1->p_addr->u_pcb;