Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 May 2003 18:10:33 -0700 (PDT)
From:      Thomas Moestl <tmm@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/i386/i386 vm_machdep.c
Message-ID:  <200305160110.h4G1AXx0090546@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305160110.h4G1AXx0090546>