I directly read / write RTC through port 0x70 and 0x71. According to the manual, a weekday will contain the day of the week with Sunday = 1, and the values ββrange from 1 to 7. When I read the byte, I get today 4, that is, on Wednesday. Whereas when I read the RTC information with hwclock -r , this is Thursday, this is correct.
Setting the date using hwclock to another date and reading it using my code does not reflect changes in the weekday byte.
This problem persists on all systems. What could be the problem?
source share