This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Question about Stack usage in eCOS ? Thanks
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "Qiang Huang" <jameshq at liverpool dot ac dot uk>
- Cc: "sandeep" <sandeep at codito dot com>, "Ecos-Discuss" <ecos-discuss at sources dot redhat dot com>
- Date: 23 Sep 2002 18:28:47 +0100
- Subject: Re: [ECOS] Question about Stack usage in eCOS ? Thanks
- References: <BDEPKKELILOKGOAOMONOMEBKCAAA.jameshq@liv.ac.uk>
"Qiang Huang" <jameshq@liverpool.ac.uk> writes:
> Does the DSR mentioned in the diagram include the Cyg_RealTimeClock::dsr()
> which rtc->tick() will be called inside.
Yes. Plus any others that may have been posted by nested interrupts.
> runs on the interrupt stack?
Yes.
> if so
> when will the stack switch back to the thread stack? how and where does this
> switching from interrupt stack to user thread stack implemented?
>
The switch back takes place at (5). If the HAL implements this it is
done in a routine named hal_interrupt_stack_call_pending_DSRs in
vectors.S.
--
Nick Garnett - eCos Kernel Architect
http://www.eCosCentric.com/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss