> Tom, on Windows why does RPCEmu have cmostick() called every
> millisecond to update the CMOS time rather than just calling
> gettimeofday() as and when required. Does it upset something else?
Not sure. It may just be something I added when trying to make the RTC work.
For some reason, all the clock code is missing from RPCemu (and apparently,
looking through old versions, always has been!). At a guess, it was removed
when originally copied from Arculator, as Arculator was a Windows app and
RPCemu (for obscure reasons), started out in DOS. And the Windows GetLocalTime
call obviously wouldn't work in DOS. Don't know why I didn't just comment it
out.
Anyway, I've restored it for the latest revision, and the time/date appear to
work fine in the Windows port (you have to set the year manually, as this isn't
stored in the clock chip). If someone could add the relevant Linux code to the
cmosgettime() function that would be great...
cmostick() could probably be got rid of now as well.
Tom
__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
_______________________________________________
Rpcemu mailing list
[email protected]
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu