1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 113 unchanged lines hidden (view full) --- 122 reg.dv == RTCA_DV_DISABLED1; 123} 124 125void 126MC146818::startup() 127{ 128 assert(!event.scheduled()); 129 assert(!tickEvent.scheduled()); |
130 131 if (stat_regB.pie) 132 schedule(event, curTick() + event.offset); 133 if (!rega_dv_disabled(stat_regA)) 134 schedule(tickEvent, curTick() + tickEvent.offset); |
135} 136 137void 138MC146818::writeData(const uint8_t addr, const uint8_t data) 139{ 140 bool panic_unsupported(false); 141 142 if (addr < RTC_STAT_REGA) { --- 208 unchanged lines hidden --- |