From patchwork Sun May 17 20:04:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parth Dixit X-Patchwork-Id: 48657 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B52DB21411 for ; Sun, 17 May 2015 20:07:40 +0000 (UTC) Received: by wgwl7 with SMTP id l7sf1251590wgw.0 for ; Sun, 17 May 2015 13:07:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=fOHj/F9DNZT2fy0tdACkj8dSFkalV5kl0ZLzfzO4nIw=; b=Fmz/DVo7PeaiDtjoa4vaXQvtBdxsyZTH4DNqInkFzuygqBYTcM0M/pF+xrfZdUX7kq rHgSxsp2AOBJfVVjl2U49QDZbS0PzbZCyWJkS6Fnzd9f8Jpn3qigNkrnVX2XtmPeMnN0 7cvyYSuJVorviKmZyX4YXTHiYYs8ReonrK6vV64pIm+4f6SeKrDRcMEXOO3lJ8sDArKA bt2de+VaJejixpROu5cNk4tiCKGtDp2xvm2V9bD1GiBmQtQ/PSN8LKpmRfLban1UAVde LaZCxTbzLJdapckhMnZw0y1DmiM3rdEl9BlgGP4VLKXoLkJO5WH/Q8umd6S7rz4SYNVs FRVg== X-Gm-Message-State: ALoCoQmCSwI/5JYdcV8trtRllujoZ+EHrDZPKd1Wn5kchmdT+BvLVt4GhrZekJiZxgrV2g48uwZo X-Received: by 10.152.26.134 with SMTP id l6mr15261269lag.10.1431893260050; Sun, 17 May 2015 13:07:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.105 with SMTP id x9ls711228laj.11.gmail; Sun, 17 May 2015 13:07:39 -0700 (PDT) X-Received: by 10.112.168.102 with SMTP id zv6mr14788517lbb.45.1431893259804; Sun, 17 May 2015 13:07:39 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id dc7si5316649lad.153.2015.05.17.13.07.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 May 2015 13:07:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by lagv1 with SMTP id v1so191340420lag.3 for ; Sun, 17 May 2015 13:07:39 -0700 (PDT) X-Received: by 10.152.2.227 with SMTP id 3mr14873073lax.73.1431893259722; Sun, 17 May 2015 13:07:39 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp3508390lbb; Sun, 17 May 2015 13:07:38 -0700 (PDT) X-Received: by 10.52.32.34 with SMTP id f2mr17727665vdi.11.1431893258345; Sun, 17 May 2015 13:07:38 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id j6si7732386vdi.79.2015.05.17.13.07.37 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 17 May 2015 13:07:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yu4pw-0004HD-8n; Sun, 17 May 2015 20:07:00 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yu4pu-0004C3-56 for xen-devel@lists.xen.org; Sun, 17 May 2015 20:06:58 +0000 Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id 6F/2C-03219-0E4F8555; Sun, 17 May 2015 20:06:56 +0000 X-Env-Sender: parth.dixit@linaro.org X-Msg-Ref: server-4.tower-206.messagelabs.com!1431893214!11154690!1 X-Originating-IP: [209.85.220.48] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG X-StarScan-Received: X-StarScan-Version: 6.13.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 5060 invoked from network); 17 May 2015 20:06:56 -0000 Received: from mail-pa0-f48.google.com (HELO mail-pa0-f48.google.com) (209.85.220.48) by server-4.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 17 May 2015 20:06:56 -0000 Received: by pacwv17 with SMTP id wv17so119795101pac.2 for ; Sun, 17 May 2015 13:06:54 -0700 (PDT) X-Received: by 10.68.57.131 with SMTP id i3mr23334707pbq.130.1431893214563; Sun, 17 May 2015 13:06:54 -0700 (PDT) Received: from localhost.localdomain ([117.247.24.139]) by mx.google.com with ESMTPSA id j9sm7838401pdm.53.2015.05.17.13.06.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 May 2015 13:06:53 -0700 (PDT) From: Parth Dixit To: xen-devel@lists.xen.org Date: Mon, 18 May 2015 01:34:05 +0530 Message-Id: <1431893048-5214-39-git-send-email-parth.dixit@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> References: <1431893048-5214-1-git-send-email-parth.dixit@linaro.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 Subject: [Xen-devel] [PATCH v2 38/41] arm : acpi enable efi for acpi X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: parth.dixit@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: 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