diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-07-01 15:07:57 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-07-01 15:07:57 +0000 |
commit | abd0aaff03fd97f2330423754546605ee918c8b2 (patch) | |
tree | a3cc4d4d05bef04f46d9f810b59339edf9363e3a /vl.c | |
parent | c39d5b78f62b0bdc10b9371c33e754ee1ba50f73 (diff) |
fixed date storage in CMOS
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@306 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -519,7 +519,7 @@ void cmos_init(void) cmos_data[RTC_HOURS] = to_bcd(tm->tm_hour); cmos_data[RTC_DAY_OF_WEEK] = to_bcd(tm->tm_wday); cmos_data[RTC_DAY_OF_MONTH] = to_bcd(tm->tm_mday); - cmos_data[RTC_MONTH] = to_bcd(tm->tm_mon); + cmos_data[RTC_MONTH] = to_bcd(tm->tm_mon + 1); cmos_data[RTC_YEAR] = to_bcd(tm->tm_year % 100); cmos_data[RTC_REG_A] = 0x26; |