Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2003 15:50:10 -0700 (PDT)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/ia64/ia64 exception.S genassym.c interrupt.c src/sys/ia64/include md_var.h
Message-ID:  <200309052250.h85MoAkE067251@repoman.freebsd.org>

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



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