Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-10] src/sys/arch/evbppc/wii/dev
Module Name: src
Committed By: martin
Date: Fri Oct 17 08:37:45 UTC 2025
Modified Files:
src/sys/arch/evbppc/wii/dev [netbsd-10]: rtcsram.c
Log Message:
Pull up following revision(s) (requested by hgutch in ticket #1172):
sys/arch/evbppc/wii/dev/rtcsram.c: revision 1.4
sys/arch/evbppc/wii/dev/rtcsram.c: revision 1.5
Wii: size of ead is 4 bytes each
wii: rtcsram: Ignore counter bias when reading/writing RTC.
Counter bias is used by system menu as an offset from the RTC for the
time displayed in the Wii's OS. Since Wii doesn't have a concept of time
zones, this bias is useless to us.
Due to a previous bug with parsing SRAM data, the bias read was always 0.
Now that the bias is read correctly, we're reading and writing
preposterous times -- remove the bias from the calculation to restore
the previous setting.
So with this change, the RTC is always in UTC and the Wii system menu
date/time settings adjusts the bias as an offset from that.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/sys/arch/evbppc/wii/dev/rtcsram.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index