This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: forwarded message from ilya kovnatsky
- To: Jesper Skov <jskov at redhat dot com>
- Subject: Re: [ECOS] forwarded message from ilya kovnatsky
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 10 Aug 2001 17:46:52 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <15219.33098.385864.147492@zoftcorp.adsl.dk>
Jesper Skov wrote:
>
> Subject: Re: 22781
> Date: Thu, 9 Aug 2001 17:42:00 -0400
> From: "ilya kovnatsky" <ilya@ptgroupinc.com>
> To: "Jesper Skov" <jskov@redhat.com>
> References: <15214.33231.491898.183690@zoftcorp.adsl.dk>
>
> Thanks for the help, it was a not properly setup TLB.
>
> New problem:
>
> The code start running ( 2 threads each has a counter in a loop with a
> delay) the counters get to 1
> and then it sits in the idle loop.
>
> There are no interupts occuring.
>
> I manualy enabled the decrementer interupt and then both the counters got to
> 2 and stopped.
>
> which interupt does the scheduler use ?
The decrementer.
> where in the code does it init the interupts to be used by the scheduler /
> task switching?
Cyg_Scheduler::start() enables the interrupts (although in the very next
CVS update, this will be done indirectly withing HAL_THREAD_LOAD_CONTEXT).
This is in kernel/VERSION/src/sched/sched.cxx. The clock interrupt gets
unmasked in kernel/VERSION/src/common/clock.cxx
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine