dev: Add support for disabling ticking and the divider in MC146818
Review Request #1859 - Created May 1, 2013 and submitted
| Information | |
|---|---|
| Andreas Sandberg | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9690:8d5eec311f25 --------------------------- 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.
Quick regressions pass (with the exception of 02.insttest and 40.m5threads-test-atomic where I can't find the binaries) for all supported architectures. Booting Debian Squeeze in KVM mode on X86 works after applying the patch (but not before).
Issue Summary
1
1
0
0
| Description | From | Last Updated | Status |
|---|---|---|---|
| Could you add a bi-sentence elaborating on why? | Andreas Hansson | June 2, 2013, 6:37 p.m. | Open |
Ship It!
Posted (June 2, 2013, 6:37 p.m.)
Do all the regressions succeed and is there a need for a stats bump?
-
src/dev/mc146818.cc (Diff revision 1) -
Could you add a bi-sentence elaborating on why?
