From patchwork Tue Sep 27 15:57:07 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: 9352155 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 BE1CF60757 for ; Tue, 27 Sep 2016 16:00:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B06D92927A for ; Tue, 27 Sep 2016 16:00:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A50212928B; Tue, 27 Sep 2016 16:00:11 +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 15BD62927A for ; Tue, 27 Sep 2016 16:00:10 +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 1boum3-0007mi-WC; Tue, 27 Sep 2016 15:58:27 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1boum3-0007lH-3W for xen-devel@lists.xenproject.org; Tue, 27 Sep 2016 15:58:27 +0000 Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id 35/22-13924-1279AE75; Tue, 27 Sep 2016 15:58:25 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRWlGSWpSXmKPExsXitHSDva7C9Ff hBm/38Fp83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBnv9l9hLnjBVfHsbWED42LOLkZODgkBf4lZ 9+6xgthsAjoSF+fuZOti5OAQEVCRuL3XoIuRi4NZYAOjxPTHt8FqhAVcJKY3HASzWQRUJb4cn 8oEYvMKuEr8ureHHWKmrsTDc7/BajiB4r1tC8BqhIB67878yApRLyhxcuYTFhCbWUBTonX7b3 YIW16ieetsZoh6RYn+eQ/A7pEQ4Jb4220/gZF/FpLuWUi6ZyHpXsDIvIpRozi1qCy1SNfQUC+ pKDM9oyQ3MTNH19DAVC83tbg4MT01JzGpWC85P3cTIzAAGYBgB+PKdudDjJIcTEqivBrtr8KF +JLyUyozEosz4otKc1KLDzHKcHAoSfB6TAXKCRalpqdWpGXmAGMBJi3BwaMkwsszDSjNW1yQm FucmQ6ROsWoKCXO2wDSJwCSyCjNg2uDxd8lRlkpYV5GoEOEeApSi3IzS1DlXzGKczAqCfMqgI znycwrgZv+CmgxE9DipSdegCwuSURISTUwWq9XlPzpOWXl3a8NB2VkejL58yQuPjwy6aFw8bT 7Ww1fLJxb4Jrz0EbVZUK31Q63OAEPCf3+2Jv5z+TWfJU5t7nQjm2XzaGl91gWPo6vs1h+hvkm lzVnsKbLghPHLpqd3Fra9jHJ4tTFz+c4JHNitjaxOwvwrRHz4Ex/uyTn72mtTbol6iu+K7EUZ yQaajEXFScCAFa8WeW6AgAA X-Env-Sender: prvs=071b8e69e=roger.pau@citrix.com X-Msg-Ref: server-5.tower-206.messagelabs.com!1474991886!60100383!8 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.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 18381 invoked from network); 27 Sep 2016 15:58:23 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 27 Sep 2016 15:58:23 -0000 X-IronPort-AV: E=Sophos;i="5.30,405,1470700800"; d="scan'208";a="389169580" From: Roger Pau Monne To: Date: Tue, 27 Sep 2016 17:57:07 +0200 Message-ID: <1474991845-27962-13-git-send-email-roger.pau@citrix.com> X-Mailer: git-send-email 2.7.4 (Apple Git-66) In-Reply-To: <1474991845-27962-1-git-send-email-roger.pau@citrix.com> References: <1474991845-27962-1-git-send-email-roger.pau@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Andrew Cooper , boris.ostrovsky@oracle.com, Roger Pau Monne , Jan Beulich Subject: [Xen-devel] [PATCH v2 12/30] 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. */