summaryrefslogtreecommitdiff
path: root/src/dev/mc146818.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/mc146818.cc')
-rw-r--r--src/dev/mc146818.cc2
1 files changed, 1 insertions, 1 deletions
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) {