Commit d89f8f7
committed
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.1 parent 157544e commit d89f8f7
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | 110 | | |
112 | | - | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
| |||
160 | 158 | | |
161 | 159 | | |
162 | 160 | | |
163 | | - | |
| 161 | + | |
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
| |||
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
174 | | - | |
| 172 | + | |
175 | 173 | | |
176 | 174 | | |
177 | 175 | | |
0 commit comments