From patchwork Tue Nov 17 09:40:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 56748 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1827748lbb; Tue, 17 Nov 2015 01:49:34 -0800 (PST) X-Received: by 10.31.15.209 with SMTP id 200mr2654022vkp.105.1447753771022; Tue, 17 Nov 2015 01:49:31 -0800 (PST) Return-Path: Received: from lists.xen.org (lists.xenproject.org. [50.57.142.19]) by mx.google.com with ESMTPS id x77si2030435vkx.201.2015.11.17.01.49.30 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Nov 2015 01:49:31 -0800 (PST) Received-SPF: neutral (google.com: 50.57.142.19 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=50.57.142.19; Authentication-Results: mx.google.com; spf=neutral (google.com: 50.57.142.19 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZycsC-0007gs-Hx; Tue, 17 Nov 2015 09:48:24 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZycsA-0007eb-LB for xen-devel@lists.xen.org; Tue, 17 Nov 2015 09:48:22 +0000 Received: from [85.158.139.211] by server-4.bemta-5.messagelabs.com id 08/32-24856-5E7FA465; Tue, 17 Nov 2015 09:48:21 +0000 X-Env-Sender: shannon.zhao@linaro.org X-Msg-Ref: server-15.tower-206.messagelabs.com!1447753701!4241891!1 X-Originating-IP: [74.125.82.53] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.19.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 49572 invoked from network); 17 Nov 2015 09:48:21 -0000 Received: from mail-wm0-f53.google.com (HELO mail-wm0-f53.google.com) (74.125.82.53) by server-15.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 17 Nov 2015 09:48:21 -0000 Received: by wmww144 with SMTP id w144so17379092wmw.0 for ; Tue, 17 Nov 2015 01:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fFmJt/L1JjYcNJTe6f0OzfPqdIi4TlO0uQoX9DOOWb8=; b=EPU93DMssDWl/UlKqeWPS0TUy6n+6Ssp+Eqbatl+sZf8psu+6gfSurvPXt2sw4HL4/ VoE6XanU0leYahz09yHn/eY+1aA79etPy1QQpaSbB1/6IlNvkRVnHuN1MwteZc4pOQHV JjjeDp9U6hf4jQAP5ARAPvY7zHv9LNLiKjx3XV90zO4tr/ZfPe0Xdq90N9mS95gWg4os qJBxUVz9pFqn0uGS94cYIx/5PWFxYUD2Uk/nbnBYLvtrVu/mwk45GjHmAdlKpkRBXOhp b8M76o5Ua3+bVJT2MBWyP8RfJ2KRxAlO7f99yhacy50xUD7/b26enJpcmWNB5GGPuko7 lFCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fFmJt/L1JjYcNJTe6f0OzfPqdIi4TlO0uQoX9DOOWb8=; b=C4nQeXHLbbin+uigc4aKop8TLdvJ9N7yCQTt8tVVAjyJGxHaHK/F7SAZHWDgYlzKkV Ip7xrl4DDACJA6Yobws35ZlIHdmRLZ4anhMZPrBMLliagR60VGijiOTCRJ5MmPB74uQu ULxSElD62Jl7S7NEmujIWuinrpyxVlfOnnu7KH3vypEXuXc0Nii+giXe9+WJ5M3HAk8R Y+kBTBXRgoT94retH6wFfA7WJ63OQlUjPI9WcOujThJaEgrdoQgnq4wYszlHFiyyvgab weJNWYI+G7+sTL3t9+wVFeQiKAWkzlo2lNR+Cyu4uHnV7uSsTpPv4U3NwiWixZIlyRGm ZO1g== X-Gm-Message-State: ALoCoQnVaWFHxboZTKSDzClYcVF0siwyFfinRlgH99pJZmup5o5rYEdEjWqT3u+BPMpcU4jzSGYk X-Received: by 10.28.146.136 with SMTP id u130mr1526280wmd.91.1447753701229; Tue, 17 Nov 2015 01:48:21 -0800 (PST) Received: from localhost ([78.129.251.54]) by smtp.gmail.com with ESMTPSA id at4sm39023130wjc.9.2015.11.17.01.48.19 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:48:20 -0800 (PST) From: shannon.zhao@linaro.org To: ian.campbell@citrix.com, stefano.stabellini@citrix.com, keir@xen.org, jbeulich@suse.com, andrew.cooper3@citrix.com, julien.grall@citrix.com, xen-devel@lists.xen.org Date: Tue, 17 Nov 2015 17:40:49 +0800 Message-Id: <1447753261-7552-51-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> References: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> Cc: mark.rutland@arm.com, hangaohuai@huawei.com, ard.biesheuvel@linaro.org, shannon.zhao@linaro.org, christoffer.dall@linaro.org, peter.huangpeng@huawei.com, david.vrabel@citrix.com, zhaoshenglong@huawei.com, linux-arm-kernel@lists.infradead.org, roger.pau@citrix.com Subject: [Xen-devel] [PATCH v3 50/62] xen/efi: store EFI system table in efi structure X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion 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 From: Shannon Zhao When preparing EFI tables for Dom0, it needs the information of EFI system table. Here store it in efi structure. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/common/efi/boot.c | 2 ++ xen/include/xen/efi.h | 1 + 2 files changed, 3 insertions(+) -- 2.1.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c index 78d8ae9..6a48624 100644 --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -1155,6 +1155,8 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) efi_tables(); + efi.est = (long)SystemTable; + /* Collect PCI ROM contents. */ setup_efi_pci(); diff --git a/xen/include/xen/efi.h b/xen/include/xen/efi.h index e74dad1..e112296 100644 --- a/xen/include/xen/efi.h +++ b/xen/include/xen/efi.h @@ -16,6 +16,7 @@ struct efi { unsigned long acpi20; /* ACPI table (ACPI 2.0) */ unsigned long smbios; /* SM BIOS table */ unsigned long smbios3; /* SMBIOS v3 table */ + unsigned long est; /* EFI system table */ }; extern struct efi efi;