diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2011-01-25 11:55:15 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-01-29 15:19:22 +0100 |
commit | 51e08f3e4b8a3b6d27fde9a9e75c8fa32eaa72d0 (patch) | |
tree | cfdfc4c13300191c3982e6bb026ba09ea5dba705 /hw/ppc_prep.c | |
parent | c29cd656a8fad633fb9ca45b88ade9838d35fd5c (diff) | |
download | qemu-51e08f3e4b8a3b6d27fde9a9e75c8fa32eaa72d0.zip qemu-51e08f3e4b8a3b6d27fde9a9e75c8fa32eaa72d0.tar.gz qemu-51e08f3e4b8a3b6d27fde9a9e75c8fa32eaa72d0.tar.bz2 |
mc146818rtc: update registers after a format change
For some unknown reason, the MIPS kernel briefly changes the RTC to
binary mode during boot, switch back to BCD mode and read the time. As
the registers are updated only every second, they may still be in the
old format when they are read.
This patch forces a register update immediately after a format change
(BCD/binary or 12/24H). This avoid long fsck during boot due to time
wrap.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/ppc_prep.c')
0 files changed, 0 insertions, 0 deletions