> I think line 220 of src/dev/mc146818.cc is incorrect. In place of,
>
>   Tick rtcClockTickOffset = event.when() - curTick()
>
> it should read,
>
>   Tick rtcClockTickOffset = tickEvent.when() - curTick()

I think that you are correct.

> Also, can some one explain the meaning of the two offsets --
> TimerInterrupt and Clock tick values being saved in the serialize()
> function?

Digging into a decade old memory:  One of the timers (RTCEvent event)
is the periodic interrupt that the kernel uses to kick the scheduler
into action.  The other timer (RTCTickEvent tickEvent) is for keeping
the real time clock synchronized with real time. Bad names for sure.

  Nate
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to