* [ECOS] scheduler and clock question
@ 2001-07-20 5:30 Arnaud Mouiche
2001-07-20 5:56 ` Jonathan Larmour
0 siblings, 1 reply; 2+ messages in thread
From: Arnaud Mouiche @ 2001-07-20 5:30 UTC (permalink / raw)
To: ecos-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] scheduler and clock question
2001-07-20 5:30 [ECOS] scheduler and clock question Arnaud Mouiche
@ 2001-07-20 5:56 ` Jonathan Larmour
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-07-20 5:56 UTC (permalink / raw)
To: Arnaud Mouiche; +Cc: ecos-discuss
Arnaud Mouiche wrote:
>
> 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..
Yes, all right. Although note it's the DSR (invoked after the ISR) that
does the work.
> 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) ?
It's a static object, so once the file is linked in for any reason (which
it will be if the scheduler is used), then the constructor will be called
at system startup time.
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
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-07-20 5:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-20 5:30 [ECOS] scheduler and clock question Arnaud Mouiche
2001-07-20 5:56 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).