From mboxrd@z Thu Jan 1 00:00:00 1970 From: Parth Dixit Subject: [PATCH v2 38/41] arm : acpi enable efi for acpi Date: Mon, 18 May 2015 01:34:05 +0530 Message-ID: <1431893048-5214-39-git-send-email-parth.dixit@linaro.org> References: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> 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@lists.xen.org Cc: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, tim@xen.org, julien.grall@citrix.com, stefano.stabellini@citrix.com, jbeulich@suse.com, parth.dixit@linaro.org, christoffer.dall@linaro.org List-Id: xen-devel@lists.xenproject.org efi should be enabled to fetch the root pointer from uefi Signed-off-by: Parth Dixit --- xen/arch/arm/setup.c | 2 ++ xen/common/efi/runtime.c | 2 +- xen/include/xen/efi.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 80364bb..9741113 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -47,6 +47,7 @@ #include #include #include +#include struct bootinfo __initdata bootinfo; @@ -104,6 +105,7 @@ static void __init parse_acpi_param(char *s) else if ( !strcmp(s, "force") ) { acpi_disabled = 0; + efi_enabled = 1; } } #endif diff --git a/xen/common/efi/runtime.c b/xen/common/efi/runtime.c index 5ed8b01..fb8c0d0 100644 --- a/xen/common/efi/runtime.c +++ b/xen/common/efi/runtime.c @@ -11,7 +11,7 @@ DEFINE_XEN_GUEST_HANDLE(CHAR16); #ifndef COMPAT #ifdef CONFIG_ARM /* Disabled until runtime services implemented */ -const bool_t efi_enabled = 0; +bool_t efi_enabled = 0; #else # include # include diff --git a/xen/include/xen/efi.h b/xen/include/xen/efi.h index 9fdc72b..448d41d 100644 --- a/xen/include/xen/efi.h +++ b/xen/include/xen/efi.h @@ -5,7 +5,7 @@ #include #endif -extern const bool_t efi_enabled; +extern bool_t efi_enabled; #define EFI_INVALID_TABLE_ADDR (~0UL) #define EFI_MEM_DESC_V1 1 -- 1.9.1