mc146818.cc (10905:a6ca6831e775) mc146818.cc (11320:42ecb523c64a)
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;

--- 261 unchanged lines hidden (view full) ---

270 uint8_t regA_serial(stat_regA);
271 uint8_t regB_serial(stat_regB);
272
273 arrayParamOut(cp, base + ".clock_data", clock_data, sizeof(clock_data));
274 paramOut(cp, base + ".stat_regA", (uint8_t)regA_serial);
275 paramOut(cp, base + ".stat_regB", (uint8_t)regB_serial);
276
277 //
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;

--- 261 unchanged lines hidden (view full) ---

270 uint8_t regA_serial(stat_regA);
271 uint8_t regB_serial(stat_regB);
272
273 arrayParamOut(cp, base + ".clock_data", clock_data, sizeof(clock_data));
274 paramOut(cp, base + ".stat_regA", (uint8_t)regA_serial);
275 paramOut(cp, base + ".stat_regB", (uint8_t)regB_serial);
276
277 //
278 // save the timer tick and rtc clock tick values to correctly reschedule
278 // save the timer tick and rtc clock tick values to correctly reschedule
279 // them during unserialize
280 //
281 Tick rtcTimerInterruptTickOffset = event.when() - curTick();
282 SERIALIZE_SCALAR(rtcTimerInterruptTickOffset);
283 Tick rtcClockTickOffset = tickEvent.when() - curTick();
284 SERIALIZE_SCALAR(rtcClockTickOffset);
285}
286

--- 63 unchanged lines hidden ---
279 // them during unserialize
280 //
281 Tick rtcTimerInterruptTickOffset = event.when() - curTick();
282 SERIALIZE_SCALAR(rtcTimerInterruptTickOffset);
283 Tick rtcClockTickOffset = tickEvent.when() - curTick();
284 SERIALIZE_SCALAR(rtcClockTickOffset);
285}
286

--- 63 unchanged lines hidden ---