From patchwork Sat Jan 16 05:01:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 8048701 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EE1B6BEEE5 for ; Sat, 16 Jan 2016 05:11:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D97820381 for ; Sat, 16 Jan 2016 05:11:45 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 666592037F for ; Sat, 16 Jan 2016 05:11:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aKJ72-000831-Q8; Sat, 16 Jan 2016 05:09:20 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aKJ70-00081r-Mm for xen-devel@lists.xen.org; Sat, 16 Jan 2016 05:09:18 +0000 Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id D5/3C-24494-E70D9965; Sat, 16 Jan 2016 05:09:18 +0000 X-Env-Sender: zhaoshenglong@huawei.com X-Msg-Ref: server-6.tower-206.messagelabs.com!1452920952!15920872!1 X-Originating-IP: [58.251.152.64] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 13894 invoked from network); 16 Jan 2016 05:09:16 -0000 Received: from szxga01-in.huawei.com (HELO szxga01-in.huawei.com) (58.251.152.64) by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 16 Jan 2016 05:09:16 -0000 Received: from 172.24.1.51 (EHLO szxeml430-hub.china.huawei.com) ([172.24.1.51]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DDC66677; Sat, 16 Jan 2016 13:02:25 +0800 (CST) Received: from HGHY1Z002260041.china.huawei.com (10.177.16.142) by szxeml430-hub.china.huawei.com (10.82.67.185) with Microsoft SMTP Server id 14.3.235.1; Sat, 16 Jan 2016 13:02:16 +0800 From: Shannon Zhao To: Date: Sat, 16 Jan 2016 13:01:11 +0800 Message-ID: <1452920477-13916-5-git-send-email-zhaoshenglong@huawei.com> X-Mailer: git-send-email 1.9.0.msysgit.0 In-Reply-To: <1452920477-13916-1-git-send-email-zhaoshenglong@huawei.com> References: <1452920477-13916-1-git-send-email-zhaoshenglong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.177.16.142] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.5699CEE1.0137, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 8d120de4fa907f0ec4e8759896665efe Cc: ian.campbell@citrix.com, peter.huangpeng@huawei.com, julien.grall@citrix.com, stefano.stabellini@citrix.com, shannon.zhao@linaro.org, Jan Beulich Subject: [Xen-devel] [PATCH v4 04/10] acpi: Don't do traditional BIOS table scan for ARM64 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: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable 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 With the addition of ARM64 that does not have a traditional BIOS to scan, stub out acpi_find_root_pointer to do nothing for ARM. Cc: Jan Beulich Signed-off-by: Shannon Zhao --- v4: stub out acpi_find_root_pointer fro ARM --- xen/drivers/acpi/tables/tbxfroot.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xen/drivers/acpi/tables/tbxfroot.c b/xen/drivers/acpi/tables/tbxfroot.c index 0efb603..90e52e9 100644 --- a/xen/drivers/acpi/tables/tbxfroot.c +++ b/xen/drivers/acpi/tables/tbxfroot.c @@ -49,6 +49,12 @@ #define _COMPONENT ACPI_TABLES ACPI_MODULE_NAME("tbxfroot") +#ifdef CONFIG_ARM +acpi_status __init acpi_find_root_pointer(acpi_native_uint * table_address) +{ + return_ACPI_STATUS(AE_NOT_FOUND); +} +#else /* Local prototypes */ static u8 *acpi_tb_scan_memory_for_rsdp(u8 * start_address, u32 length); @@ -271,3 +277,4 @@ static u8 *__init acpi_tb_scan_memory_for_rsdp(u8 * start_address, u32 length) start_address)); return_PTR(NULL); } +#endif