cvs commit: src/sys/ia64/ia64 exception.S genassym.c interrupt.c src/sys/ia64/include md_var.h

Marcel Moolenaar marcel at FreeBSD.org
Fri Sep 5 15:50:20 PDT 2003


marcel      2003/09/05 15:50:10 PDT

  FreeBSD src repository

  Modified files:
    sys/ia64/ia64        exception.S genassym.c interrupt.c 
    sys/ia64/include     md_var.h 
  Log:
  Fix a place where I forgot to change the code that checks whether
  we return to kernel or userland. This triggered a panic in a KSE
  application when TDF_USTATCLOCK was set in the case userland was
  interrupted, but we never called ast() on our way out. As such,
  we called ast() at some other time. Unfortunately, TDF_USTATCLOCK
  handling assumes running in the interrupt thread. This was not
  the case anymore.
  
  To avoid making the same mistake later, interrupt() now returns
  to its caller whether we interrupted userland or not. This avoids
  that we have to duplicate the check in assembly, where it's bound
  to fall off the scope. Now we simply check the return value and
  call ast() if appropriate.
  
  Run into this: davidxu
  
  Revision  Changes    Path
  1.52      +5 -17     src/sys/ia64/ia64/exception.S
  1.36      +0 -2      src/sys/ia64/ia64/genassym.c
  1.40      +3 -1      src/sys/ia64/ia64/interrupt.c
  1.13      +1 -1      src/sys/ia64/include/md_var.h


More information about the cvs-src mailing list