cvs commit: src/sys/i386/i386 vm_machdep.c
Thomas Moestl
tmm at FreeBSD.org
Thu May 15 18:10:35 PDT 2003
tmm 2003/05/15 18:10:33 PDT
FreeBSD src repository
Modified files:
sys/i386/i386 vm_machdep.c
Log:
In cpu_fork(), initialize pcb_psl for the new process to PSL_KERNEL,
instead of taking the (userland) eflags from the trap frame and masking
out PSL_I. There is no need to inherit any flags from the forking process;
the old method however can cause flags set in userland for the forking
process to be bogusly set in kernel mode when the newly forked process
runs for the first time (in particular PSL_T, which is set for userland
when the process is single-stepped; this would cause trace traps in
kernel mode).
Approved by: re (jhb)
Revision Changes Path
1.207 +1 -1 src/sys/i386/i386/vm_machdep.c
More information about the cvs-src
mailing list