This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ecos scheduler start in clocktruth.cxx
- From: Satish Kumar <satish at bvt dot sc dot sanyo dot co dot jp>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 24 Sep 2003 14:27:39 +0900
- Subject: Re: [ECOS] ecos scheduler start in clocktruth.cxx
well, i m lookin for somethin similar to cyg_scheduler_start() which is
used to invoke the scheduler according to the configuration options
selected.
well, incase of an application, i read that its not necessary to invoke
the scheduler , from the user start function since this is performed
when cyg_user_start returns..that means Scheduler::start func is called.
so, start() func inturn calls cpu_start() which i assume is
responsible for invoking the scheduler..so i see some instruction like
"register Cyg_Thread *next = scheduler.schedule();",,is this responsible
for invoking the schduler..?
can some one explain in detail were in this func the scheduler
is initialised..!!
thanks
satish
On Wed, 24 Sep 2003 10:19:14 +0530
"sandeep" <sandeep@codito.com> wrote:
> > Can somebody tell me at what stage the ecos sheduler is started
> > when i execute my clocktruth program.. i believe the ecos scheduler
> > is usually invoked by the cyg_user_start routine, which is not seen
> > in the clocktruth program.
>
> void clocktruth_main( void )
> {
> CYG_TEST_INIT();
> new_thread(entry0, (CYG_ADDRWORD)&thread_obj[0]);
> Cyg_Scheduler::start();
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> }
>
> externC void
> cyg_start( void )
> {
> #ifdef CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG
> cyg_hal_invoke_constructors();
> #endif
> clocktruth_main();
> }
>
> #else // def CYGVAR_KERNEL_COUNTERS_CLOCK
--
Satish Kumar <satish@bvt.sc.sanyo.co.jp>
--------------------- Original Message Ends --------------------
--
Satish Kumar <satish@bvt.sc.sanyo.co.jp>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss