From patchwork Fri Jul 29 16:29:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 9252679 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E88F860757 for ; Fri, 29 Jul 2016 16:31:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAE93283E1 for ; Fri, 29 Jul 2016 16:31:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFAB9283E2; Fri, 29 Jul 2016 16:31:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 89B8E283E4 for ; Fri, 29 Jul 2016 16:31:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTAf7-0003Ss-Kl; Fri, 29 Jul 2016 16:29:25 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTAf6-0003Ra-FT for xen-devel@lists.xenproject.org; Fri, 29 Jul 2016 16:29:24 +0000 Received: from [193.109.254.147] by server-6.bemta-14.messagelabs.com id 4A/87-16889-3648B975; Fri, 29 Jul 2016 16:29:23 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKIsWRWlGSWpSXmKPExsXitHSDvW5yy+x wgyP7BCy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oyLtxayFWzkqti8+iN7A+MHji5GTg4JAX+J puVrWEFsNgEdiYtzd7J1MXJwiAioSNzeawBiMguUS8y4EQ9SISzgKnGzewsTiM0ioCox5fd2N hCbV8BF4u+v1SwQE3UlHp77zQrSyglU/39VNYgpBFTS0BQKUS0ocXLmE7BqZgFNidbtv9khbH mJ5q2zmUFsIQFFif55D9ggJnJL3D49lXkCI/8sJO2zkLTPQtK+gJF5FaNGcWpRWWqRrqGhXlJ RZnpGSW5iZg6QZ6KXm1pcnJiempOYVKyXnJ+7iREYfAxAsIPxzArnQ4ySHExKorwLVswKF+JL yk+pzEgszogvKs1JLT7EKMPBoSTBm9A8O1xIsCg1PbUiLTMHGAcwaQkOHiUR3lkgad7igsTc4 sx0iNQpRkUpcV59kIQASCKjNA+uDRZ7lxhlpYR5GYEOEeIpSC3KzSxBlX/FKM7BqCTMWwkyhS czrwRu+iugxUxAi4tjZ4AsLklESEk1MKZGpF5+tOHM7CrWTWKrnG/ecAmc2Bb2s1/jbz2fiJV Y2wY1tx+2kbxz+pY/3Ls+o0ciQJHvZDXjhGvqfA43n6rMbZj2aM5azfk2zyvMpmbu23ktirfO aJvqSlPFuWvVz85efEBxlwVb5OYjnzr7V85e0rZ10at8C/Gbv8Qs0oOEStzd7h13K1NiKc5IN NRiLipOBACTSpLquAIAAA== X-Env-Sender: prvs=011b0443a=roger.pau@citrix.com X-Msg-Ref: server-15.tower-27.messagelabs.com!1469809760!1527603!2 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 12270 invoked from network); 29 Jul 2016 16:29:23 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-15.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 29 Jul 2016 16:29:23 -0000 X-IronPort-AV: E=Sophos;i="5.28,440,1464652800"; d="scan'208";a="376340853" From: Roger Pau Monne To: Date: Fri, 29 Jul 2016 18:29:00 +0200 Message-ID: <1469809747-11176-6-git-send-email-roger.pau@citrix.com> X-Mailer: git-send-email 2.7.4 (Apple Git-66) In-Reply-To: <1469809747-11176-1-git-send-email-roger.pau@citrix.com> References: <1469809747-11176-1-git-send-email-roger.pau@citrix.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: Andrew Cooper , Jan Beulich , Roger Pau Monne Subject: [Xen-devel] [PATCH RFC 05/12] xen/x86: make print_e820_memory_map global X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP So that it can be called from the Dom0 builder. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper --- Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/e820.c | 2 +- xen/include/asm-x86/e820.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c index ef077a5..48e35f9 100644 --- a/xen/arch/x86/e820.c +++ b/xen/arch/x86/e820.c @@ -87,7 +87,7 @@ static void __init add_memory_region(unsigned long long start, e820.nr_map++; } -static void __init print_e820_memory_map(struct e820entry *map, unsigned int entries) +void __init print_e820_memory_map(struct e820entry *map, unsigned int entries) { unsigned int i; diff --git a/xen/include/asm-x86/e820.h b/xen/include/asm-x86/e820.h index d9ff4eb..9dad76a 100644 --- a/xen/include/asm-x86/e820.h +++ b/xen/include/asm-x86/e820.h @@ -31,6 +31,7 @@ extern int e820_change_range_type( extern int e820_add_range( struct e820map *, uint64_t s, uint64_t e, uint32_t type); extern unsigned long init_e820(const char *, struct e820entry *, unsigned int *); +extern void print_e820_memory_map(struct e820entry *map, unsigned int entries); extern struct e820map e820; /* These symbols live in the boot trampoline. */