This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
why need to call Cyg_Scheduler::get_current_thread()->set_saved_context(regs) in interrupt_end()?
- From: "Qiang Huang" <jameshq at liverpool dot ac dot uk>
- To: "Ecos-Discuss" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 1 Oct 2002 17:28:05 +0100
- Subject: [ECOS] why need to call Cyg_Scheduler::get_current_thread()->set_saved_context(regs) in interrupt_end()?
Q1:
Is the context for the thread is saved by the calling to the pending dsr()?
so will those context save be overlapped? or maybe I went to the wrong way.
Thanks
Q2:
If this is needed in interrupt_end() so when I implememting the assembly
code for interrupt handling which context do I need to save? context in the
interrupt or the context before entering the interrupt?
Thanks a lot
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss