[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] UTC documentation uploaded



On Wed, 6 Dec 2000, Guido Flohr wrote:

> > couldn't you change the system clock as well? You know the offset so there
> > shouldn't be any problem. Simply pass the GEMDOS time +- the offset to the
> > XBIOS call.
> 
> It shouldn't be a problem but it is obviously beyond my programming
> skills. ;-)

? I should look into MiNT source first, but since I don't have them handy
(where's the 1.16 tree, anyway? I downloaded something from CVS and it was
1.15.11)

> I try to do exactly what you propose, look in the kernel sources.  But it
> doesn't work reliably and I am at the end of my wits now.

it always worked in all TOS versions. GEMDOS Tsettime()/Tsetdate() call
XBIOS Settime() internally, I believe (Michael knows the answer for sure
or can look it up in his GEMDOS.C :-). Where doesn't it work reliably? On
some hardware, or under certain circumstances, or simply from time to
time on all machines?

> One advantage of the Linux or BSD solution: Imagine you have a
> radio-controlled hardware clock (I was told that they are available for
> Atari as well).  In that case even smarter kernel routines than mine will
> fail to modify the hardware clock permanently.

It doesn't hurt anything, does it? Either the hardware clock has a hook
into XBIOS Settime() call (then it gets updated correctly) or there is no
such hook and then the clock is not updated (in case of radio-controlled
clock it's probably OK :)

Petr
--
News: Clocky 3.10b, PARCP 3.80!, Atari800 1.04 at http://joy.atari.org/