cvs commit: src/sys/amd64/amd64 machdep.c trap.c

Peter Wemm peter at FreeBSD.org
Thu May 8 01:25:52 PDT 2003


peter       2003/05/08 01:25:51 PDT

  FreeBSD src repository

  Modified files:
    sys/amd64/amd64      machdep.c trap.c 
  Log:
  Oops.  Turn T_PAGEFLT back into an interrupt gate.  It is *critical*
  that interrupts be disabled and remain disabled until %cr2 is read.
  Otherwise we can preempt and another process can fault, and by the
  time we read %cr2, we see a different processes fault address.  This
  Greatly Confuses vm_fault() (to say the least).  The i386 port has
  got this marked as a bug workaround for a Cyrix CPU, which is what
  lead me astray.  Its actually necessary for preemption, regardless
  of whether Cyrix cpus had a bug or not.
  
  Revision  Changes    Path
  1.568     +1 -1      src/sys/amd64/amd64/machdep.c
  1.253     +9 -1      src/sys/amd64/amd64/trap.c


More information about the cvs-src mailing list