Reply-To: "Jesus Alvarez" <llorente@uhu.es>
From: "Jesus Alvarez" <llorente@uhu.es>
Newsgroups: comp.os.minix
Subject: using milli_delay() in kernel developement
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Message-ID: <53ST4.12718$NV5.81252@telenews.teleline.es>
Date: Mon, 15 May 2000 12:27:45 GMT
NNTP-Posting-Host: 150.214.166.95
X-Complaints-To: usenet@teleline.es
X-Trace: telenews.teleline.es 958393665 150.214.166.95 (Mon, 15 May 2000 14:27:45 MET DST)
NNTP-Posting-Date: Mon, 15 May 2000 14:27:45 MET DST
Organization: Clientes_Teleline
Path: news.adfa.oz.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!newshub1.rdc1.nsw.optushome.com.au!newshub1.kdd.nap.home.ne.jp!news.home.ne.jp!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!bignews.mediaways.net!newsfeed.online.be!ams.uu.net!News.Amsterdam.UnisourceCS!newsfeed.mad.ttd.net!telenews.teleline.es!not-for-mail
Xref: news.adfa.oz.au comp.os.minix:35278

Hi!

I need to make a delay during minix 2.0.x startup, and I have found the
function
milli_delay() in kernel/clock.c
I invoke this function in the last line of main(), in file kernel/main.c,
before the restat() call.

The problem is that the real delay is half the time I pass to the function.
For example, if I pass a value of 10000 (miliseconds), the spent time is
only 5 seconds.

Do you know if it is normal? Is milli_delay() working properlly?

Perhaps is hardware clock (timer) not correctly initialized in this point of
minix startup? I have tried to do same init code for timer that in
init_clock() (in kernel/clock.c), before calling milli_delay(), but the
result is the same.


Thank you all.

--
Jesus Alvarez - llorente@uhu.es




