Protect the per-process UAC field with the proc lock where it isn't already

protected.
This commit is contained in:
John Baldwin 2003-04-17 21:57:16 +00:00
parent 693f4477b1
commit 00e93b4d53
2 changed files with 3 additions and 1 deletions

View File

@ -119,7 +119,9 @@ cpu_fork(td1, p2, td2, flags)
td2->td_pcb = (struct pcb *)
(td2->td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1;
td2->td_md.md_flags = td1->td_md.md_flags & MDTD_FPUSED;
PROC_LOCK(p2);
p2->p_md.md_uac = p1->p_md.md_uac;
PROC_UNLOCK(p2);
/*
* Cache the physical address of the pcb, so we can

View File

@ -62,7 +62,7 @@ struct mdthread {
#define MDP_UAC_MASK (MDP_UAC_NOPRINT | MDP_UAC_NOFIX | MDP_UAC_SIGBUS)
struct mdproc {
u_int md_uac; /* Unaligned Access Check flags. */
u_int md_uac; /* (c) Unaligned Access Check flags. */
};
#endif /* !_MACHINE_PROC_H_ */