summary refs log tree commit diff stats
path: root/results/scraper/launchpad-without-comments/1090558
blob: 1eeb499785b7ddee7b740758b0a802c4870e00cc (plain) (blame)
1
2
3
4
5
6
7
8
9
hw/mc146818: error reading RTC_HOURS_ALARM

get_next_alarm() doesn't read the RTC_HOURS_ALARM field correctly.

- Bit 7 must be masked before conversion from BCD.
- Care must be taken to check the don't care condition before masking.
- The PM bit must be read from RTC_HOURS_ALARM, not from RTC_HOURS (as is done in convert_hour()).

Seen in commit e376a788ae130454ad5e797f60cb70d0308babb6.