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]

Re: forwarded message from ilya kovnatsky


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


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