mc146818.cc (10631:6d6bfdb036ce) | mc146818.cc (10777:a8a5eb637d72) |
---|---|
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()); | 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 schedule(event, curTick() + event.offset); 131 schedule(tickEvent, curTick() + tickEvent.offset); | 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); |
132} 133 134void 135MC146818::writeData(const uint8_t addr, const uint8_t data) 136{ 137 bool panic_unsupported(false); 138 139 if (addr < RTC_STAT_REGA) { --- 208 unchanged lines hidden --- | 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 --- |