Searched hist:a93b6bf5e994178339792ae87d92d53ea68bde1b (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/i386/i386/ |
H A D | vm_machdep.c | diff a93b6bf5e994178339792ae87d92d53ea68bde1b Fri May 16 03:10:33 CEST 2003 Thomas Moestl <tmm@FreeBSD.org> 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) diff a93b6bf5e994178339792ae87d92d53ea68bde1b Fri May 16 03:10:33 CEST 2003 Thomas Moestl <tmm@FreeBSD.org> 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)
|