History log of /netbsd-current/sys/dev/goldfish/gfrtc.c
Revision Date Author Comments
# 1.5 05-Mar-2024 isaki

Fix two problems that the time runs late on virt68k.
- The time between the time the alarm occurred and the time read by
TIME_* register in the next interrupt handler was not accumulated.
- With the one-shot timer method, once the host time prolongs, the
guest time will never be able to catch up with the host time again.
New one does:
- The driver maintains its (guest's) time (as sc_alarm_time) and always
set the next alarm sc_interval_ns after the previous alarm.
- gfrtc_set_alarm() takes an absolute time instead of a relative time
as the argument.
PR kern/57980. Confirmed on QEMU.


# 1.4 04-Jan-2024 simonb

Fix nanosecond math in gfrtc_gettime().


# 1.3 02-Jan-2024 thorpej

Add support for the timer portion of the Goldfish RTC device.


# 1.2 31-Dec-2023 thorpej

gfrtc_settime(): Write the low half of the time valueinto the RTC_TIME_LOW
register, not the RTC_TIME_HIGH register.


# 1.1 29-Dec-2023 thorpej

Re-factor the Goldfish RTC driver into attach-front-end and generic
back-end; Goldfish virtual devices can be found on virtual platforms
that don't use FDT.


# 1.4 04-Jan-2024 simonb

Fix nanosecond math in gfrtc_gettime().


# 1.3 02-Jan-2024 thorpej

Add support for the timer portion of the Goldfish RTC device.


# 1.2 31-Dec-2023 thorpej

gfrtc_settime(): Write the low half of the time valueinto the RTC_TIME_LOW
register, not the RTC_TIME_HIGH register.


# 1.1 29-Dec-2023 thorpej

Re-factor the Goldfish RTC driver into attach-front-end and generic
back-end; Goldfish virtual devices can be found on virtual platforms
that don't use FDT.


# 1.3 02-Jan-2024 thorpej

Add support for the timer portion of the Goldfish RTC device.


# 1.2 31-Dec-2023 thorpej

gfrtc_settime(): Write the low half of the time valueinto the RTC_TIME_LOW
register, not the RTC_TIME_HIGH register.


# 1.1 29-Dec-2023 thorpej

Re-factor the Goldfish RTC driver into attach-front-end and generic
back-end; Goldfish virtual devices can be found on virtual platforms
that don't use FDT.