This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Servicing interrupts in ISR, but not in DSR


Hi Gary,

After the service code in the ISR is executed, will the thread that was in
progress continue automatically or do I need to include something to tell
it to resume?

Thanks for your help,

Miguel J. Vega
FEGI C&DH Team
University of Michigan

On Jul 13, 2004 Gary Thomas wrote:

  |  On Tue, 2004-07-13 at 18:11, Miguel J. Vega wrote:
  |  > Hi everyone,
  |  >
  |  > If it is possible to service an interrupt completely in an ISR, is there a
  |  > way to bypass the DSR? I included both because it is required by
  |  > cyg_interrupt_create, but I think everything can be handeled in the ISR.
  |
  |  Yes, certainly.  Just pass any address (0 comes to mind) for the DSR.
  |  In the ISR, make sure that you never return "CYG_ISR_CALL_DSR" and
  |  all will be well.
  |
  |  --
  |  Gary Thomas <gary@mlbassoc.com>
  |  MLB Associates
  |
  |

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]