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]

scheduler and clock question



first, tell me if I'm right :

- the object 'Cyg_RealTimeClock' defined in the 'clock.cxx' files has an 
ISR. this ISR is called regulary (10 ms corresponding to the 
CYGNUM_KERNEL_COUNTERS_RTC_PERIOD value, generally equal to 
CYGNUM_HAL_RTC_PERIOD.)
- to create this periodicaly call, it use 'hal_clock_initialize' and 
'hal_clock_reset' specifics functions.
- the ISR attachement is performed by the 'Cyg_RealTimeClock' constructor
- every CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS times an ISR rise for the timer 
(generally equal to 5), a call is made to the choosen scheduler object. 
this scheduler performs context switch and so..

Here my question :

There is no header defined for  'Cyg_RealTimeClock'  object. And there is 
no link with this object in any other files. In that case, who initializes 
this object (and so, who calls the contructor) ?

If you have the answer, ... you are welcome !!!

arnaud


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