cvs commit: src/sys/ia64/ia64 machdep.c

Marcel Moolenaar marcel at FreeBSD.org
Sun Nov 9 21:28:06 PST 2003


marcel      2003/11/09 21:28:05 PST

  FreeBSD src repository

  Modified files:
    sys/ia64/ia64        machdep.c 
  Log:
  In get_mcontext(), do not update bspstore and ndirty in the trapframe.
  Only update them in the newly created context to reflect the state
  after copying the dirty registers onto the user stack. If we were to
  update the trapframe, we lose the state at entry into the kernel. We
  may need that after we create the context, such as for KSE upcalls.
  
  We have to update the trapframe after writing the dirty registers to
  the user stack for signal delivery to work. But this is best done in
  sendsig() itself where it applies, not in get_mcontext() where it's
  done unconditionally.
  
  Revision  Changes    Path
  1.166     +9 -5      src/sys/ia64/ia64/machdep.c


More information about the cvs-src mailing list