kvm tools, rtc: Implement RTC_DAY_OF_WEEK

This patch implements support for RTC_DAY_OF_WEEK RTC register.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Pekka Enberg
2015-06-01 16:39:48 +01:00
committed by Will Deacon
parent c8f6893b46
commit c717392f5c
+3
View File
@@ -54,6 +54,9 @@ static bool cmos_ram_data_in(struct ioport *ioport, struct kvm *kvm, u16 port, v
case RTC_HOURS:
ioport__write8(data, bin2bcd(tm->tm_hour));
break;
case RTC_DAY_OF_WEEK:
ioport__write8(data, bin2bcd(tm->tm_wday + 1));
break;
case RTC_DAY_OF_MONTH:
ioport__write8(data, bin2bcd(tm->tm_mday));
break;