[ECOS] Question about Stack usage in eCOS ? Thanks

Nick Garnett nickg@ecoscentric.com
Mon Sep 23 10:35:00 GMT 2002


"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



More information about the Ecos-discuss mailing list