mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-05 13:11:44 +00:00
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:
committed by
Will Deacon
parent
c8f6893b46
commit
c717392f5c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user