I try to set the CMOS clock programmatically.
I’m working on PC compliant hardware, so I’m using ioport 0x70 and 0x71,
disabling clock updates while setting the new time and day.
But, sometimes I have a completely erratic result, and more often,
everything is back in 1970 (something like 0, for time_t!)
I have brand new batteries for the CMOS!
Do you have any hint ?
Do you have any piece of code that shows how to set the CMOS clock (I might
have done something silly!)