X86: Don't insist on binary encoding for the RTC since we implement BCD.

This commit is contained in:
Gabe Black 2009-08-20 00:40:14 -07:00
parent ed088ed15e
commit bc67396ada

View file

@ -96,7 +96,7 @@ MC146818::writeData(const uint8_t addr, const uint8_t data)
replaceBits(stat_regA, data, 6, 0);
break;
case RTC_STAT_REGB:
if ((data & ~(RTCB_PRDC_IE | RTCB_SQWE)) != (RTCB_BIN | RTCB_24HR))
if ((data & ~(RTCB_PRDC_IE | RTCB_SQWE)) != RTCB_24HR)
panic("Write to RTC reg B bits that are not implemented!\n");
if (data & RTCB_PRDC_IE) {