[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Which stack does the timer service routine use?
- Date: Fri, 28 May 1999 09:22:07 -0600
- From: eric at cls.usask.ca (Eric Norum)
- Subject: Which stack does the timer service routine use?
joel at oarcorp.com wrote:
>
> On Fri, 28 May 1999, Jiri Gaisler wrote:
>
> > Does anyone know which stack a timer service routine work on? Is
> > it the interrupt stack, the task stack of the task that created
> > the timer, or the task stack of the task that was interrupted by
> > the timer interrupt? We're having some problems with stack overflow
> > during timer handling but I don't know which stack to increase.
> >
>
> Timer service routines are invoked during the clock_tick
> directive and thus run on the Interrupt stack.
>
> We talked at one time about making a dedicated timer server task but were
> resistant adding the overhead.
>
I've wondered about this myself. I would think that in the interests of minimizing interrupt latency it would be better to run timed operations from a timer server task.
--
Eric Norum eric at cls.usask.ca
Saskatchewan Accelerator Laboratory Phone: (306) 966-6308
University of Saskatchewan FAX: (306) 966-6058
Saskatoon, Canada.