From: "Jan Beulich" Subject: [PATCH 5/6] x86: honor ACPI indicating absence of CMOS RTC Date: Thu, 21 Feb 2013 13:01:22 +0000 Message-ID: <512628B202000078000BFE8F@nat28.tlf.novell.com> References: <512625DA02000078000BFE5D@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartB787CDB2.0__=" Return-path: In-Reply-To: <512625DA02000078000BFE5D@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartB787CDB2.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On such systems we can boot through EFI only. Signed-off-by: Jan Beulich --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -754,6 +754,9 @@ static unsigned long get_cmos_time(void) return res; } =20 + if ( unlikely(acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_CMOS_RTC) ) + panic("System without CMOS RTC must be booted from EFI\n"); + spin_lock_irqsave(&rtc_lock, flags); =20 /* read RTC exactly on falling edge of update flag */ --=__PartB787CDB2.0__= Content-Type: text/plain; name="ACPI-v5-no-CMOS-RTC.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ACPI-v5-no-CMOS-RTC.patch" x86: honor ACPI indicating absence of CMOS RTC=0A=0AOn such systems we can = boot through EFI only.=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- a/xen/arch/x86/time.c=0A+++ b/xen/arch/x86/time.c=0A@@ -754,6 = +754,9 @@ static unsigned long get_cmos_time(void)=0A return = res;=0A }=0A =0A+ if ( unlikely(acpi_gbl_FADT.boot_flags & = ACPI_FADT_NO_CMOS_RTC) )=0A+ panic("System without CMOS RTC must be = booted from EFI\n");=0A+=0A spin_lock_irqsave(&rtc_lock, flags);=0A = =0A /* read RTC exactly on falling edge of update flag */=0A --=__PartB787CDB2.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__PartB787CDB2.0__=--