diff options
author | Andreas Sandberg <andreas@sandberg.pp.se> | 2013-06-03 12:28:52 +0200 |
---|---|---|
committer | Andreas Sandberg <andreas@sandberg.pp.se> | 2013-06-03 12:28:52 +0200 |
commit | 5e60f87aa3ec4ef9503e6bca54ebfd3c5a543aec (patch) | |
tree | 4187e32a5179b282b128dd8494aea8c7dc59cf1e /src/dev/terminal.cc | |
parent | 14b8a17f284ad398e39636da907f3055462f75cd (diff) | |
download | gem5-5e60f87aa3ec4ef9503e6bca54ebfd3c5a543aec.tar.xz |
dev: Add support for disabling ticking and the divider in MC146818
Some Linux versions disable updates (regB.set = 1) to prevent the chip
from updating its internal state while the OS is updating it. Support
for this was already there, this patch merely disables the check in
writeReg that prevented it from being enabled. The patch also includes
support for disabling the divider, which is used to control when clock
updates should start after setting the internal RTC state.
These changes are required to boot most vanilla Linux distributions
that update the RTC settings at boot.
Diffstat (limited to 'src/dev/terminal.cc')
0 files changed, 0 insertions, 0 deletions