diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-27 06:14:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-27 06:14:49 +0000 |
commit | 1f93e978db8af006a445eac5092de3b49a8bc737 (patch) | |
tree | ac77b953607252bd03c8b3f799e28bf7f6e4647c | |
parent | 7416350985477964cbecf25b3d826e4a4487255e (diff) |
from netbsd; copy md_flags at fork time (fixes npx problems)
-rw-r--r-- | sys/arch/i386/i386/vm_machdep.c | 2 |
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; |