From bc67396ada6a0a55f863d4084d02300315798818 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 20 Aug 2009 00:40:14 -0700 Subject: [PATCH] X86: Don't insist on binary encoding for the RTC since we implement BCD. --- src/dev/mc146818.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/mc146818.cc b/src/dev/mc146818.cc index c01d945b3..2ee5dbaaa 100644 --- a/src/dev/mc146818.cc +++ b/src/dev/mc146818.cc @@ -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) { -- 2.30.2