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: Question about Stack usage in eCOS ? Thanks


"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


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