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: 7635301 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 09FB69F1D3 for ; Tue, 17 Nov 2015 10:26:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2779E204E2 for ; Tue, 17 Nov 2015 10:26:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55B2B203FB for ; Tue, 17 Nov 2015 10:26:37 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZydQt-0003Yl-CB; Tue, 17 Nov 2015 10:24:15 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZycsU-0003JU-Lk for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2015 09:48:48 +0000 Received: by wmww144 with SMTP id w144so145747748wmw.1 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=SWysAzA1gOTemZamyVHbwtxEUlgSw8MwoMANMTwRjCKrwfKGuwl+20UKoN+STTW+Ws VsYGSwxWSISWZmZ4XIi/jMiqj2Y2JuLVkg27AQRYvkMS6u3QeVluTMvfKpqhK6TOlgo1 ViFeMeKNymAghLUtMuPcwCWNCgZDGM0S7y56/V5nWiPPMBLMMOeMFw3ni8LrU2tBNg+9 ZlE4t9OfoY9MujqxlvWeqRAUT5x/yHAyLjQSVZpq+5lxL2tjJWl7C3GR++XkADE450m9 +C+iQvI1eOmujaVQuaCgFNXTgpWi8UoFFJMq9SLRktx6KZNeVIjvd5waIeM+X+DEfb15 siXA== X-Gm-Message-State: ALoCoQnVY1SmotdqptWHgTE+InEqDMcEjaEDfQambvxkRm2PfaZTvdWWIRlRPm8OA77snOp92xyU 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 Subject: [PATCH v3 50/62] xen/efi: store EFI system table in efi structure 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151117_014843_199308_0FC79F68 X-CRM114-Status: GOOD ( 10.20 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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;