On 10/24/2012 01:19 AM, Pekka Enberg wrote: > >> On 10/19/2012 01:17 PM, ron minnich wrote: >>> I'm embarrassed, the comment matcheth not the code. Oops. >>> >>> "if year is > 99, subtract 100 etc." >>> >>> Or just yank all my words starting with "If the year ..." >>> >>> Sorry. I'll never make this mistake again, at least until we run out >>> of BCD digits. >>> > > On Fri, 19 Oct 2012, H. Peter Anvin wrote: >> You know there is a century field, right? > > Unfortunately we don't support ACPI and looking at > arch/x86/kernel/rtc.c::mach_get_cmos_time(), I think we'd need that to > tell the guest kernel which register is used for the century field: > > #ifdef CONFIG_ACPI > if (acpi_gbl_FADT.header.revision >= FADT2_REVISION_ID && > acpi_gbl_FADT.century) > century = CMOS_READ(acpi_gbl_FADT.century); > #endif > You can use the standard location of 0x32. Whether the guest kernel will look for it there is another matter. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html