Skip to content
Snippets Groups Projects
Commit 621cc70b authored by Bernhard Kauer's avatar Bernhard Kauer Committed by Anthony Liguori
Browse files

RTC polling mode broken


The RTC emulation does not set the IRQ flags independent of the IRQ enable bits.

The original MC146818A datasheet from 1984 notes:
        "flag bits in Register C [...] are set independent of the
        state of the corresponding enable bits in Register B"
Similar sections can be found in newer documentation e.g. in rtc82885.

Qemu and Bochs set the IRQ flags only if they are enabled,
which breaks drivers polling on them.

The following patch corrects this for the update-ended-flag in Qemu only.
It does not fix the handling of the other flags.

Signed-off-by: default avatarBernhard Kauer <kauer@tudos.org>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent ebeab049
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment