From nobody Fri Apr 19 03:17:23 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1565679245; cv=none; d=zoho.com; s=zohoarc; b=XZ4J1kmZGC912ymkRfsu9oRTK/u6BIowFu65tKV9oEUBIDl6/eQOxImWfxTe+QB16eQZ7yroL2AtXx2DKyjEvPAOww0nbuKxGLcqmfl318s3dZ+umqV6yH1OqrpuurAOLEd85cWYQDlSLTF/hXJzAs6rSYAhkCAEvezq7A6FVWk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565679245; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=D1KATos3i9uBCWRqtjpR8/h5pMU0mk+r7/7Bf452khQ=; b=jmbXzV1fvvFtKi33AZQZI3NVsTVdYvr3D2qIJ4nlHFe9aEITYXIyuif0Q7uJOJVieyAKmRfY8clr9doauNbWZYHUsJiUNmQbDVqKI90rb8vXFsD8xcbXUxdDaJTnTa8AzTPyIBmGDkJOJ1sa3WdGzwerpGoxo1eDSUA/05eNdE0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1565679245162445.8264436307318; Mon, 12 Aug 2019 23:54:05 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hxQgK-0001x1-Jo; Tue, 13 Aug 2019 06:53:20 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hxQgJ-0001wd-No for xen-devel@lists.xenproject.org; Tue, 13 Aug 2019 06:53:19 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id a8050ef8-bcf3-11e9-a281-e77186e782e6; Mon, 12 Aug 2019 11:23:49 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1C06215AB; Mon, 12 Aug 2019 04:23:49 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 675733F706; Mon, 12 Aug 2019 04:23:48 -0700 (PDT) X-Inumbo-ID: a8050ef8-bcf3-11e9-a281-e77186e782e6 From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 12 Aug 2019 12:23:43 +0100 Message-Id: <20190812112343.26858-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH] xen/arm: setup: Add Xen as boot module before printing all boot modules X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , Stefano Stabellini , Volodymyr Babchuk MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Since commit f60658c6ae "xen/arm: Stop relocating Xen", the position of Xen in memory is not printed anymore. This can make difficult to debug early code. As Xen is not relocated anymore, we can add Xen as boot module before calling boot_fdt_info(). With that, the function will print Xen module information along with all the other modules. Signed-off-by: Julien Grall Acked-by: Stefano Stabellini --- xen/arch/arm/setup.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index d047ff8e31..7509d76dd4 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -779,18 +779,18 @@ void __init start_xen(unsigned long boot_phys_offset, "Please check your bootloader.\n", fdt_paddr); =20 - fdt_size =3D boot_fdt_info(device_tree_flattened, fdt_paddr); - - cmdline =3D boot_fdt_cmdline(device_tree_flattened); - printk("Command line: %s\n", cmdline); - cmdline_parse(cmdline); - /* Register Xen's load address as a boot module. */ xen_bootmodule =3D add_boot_module(BOOTMOD_XEN, (paddr_t)(uintptr_t)(_start + boot_phys_offse= t), (paddr_t)(uintptr_t)(_end - _start + 1), fals= e); BUG_ON(!xen_bootmodule); =20 + fdt_size =3D boot_fdt_info(device_tree_flattened, fdt_paddr); + + cmdline =3D boot_fdt_cmdline(device_tree_flattened); + printk("Command line: %s\n", cmdline); + cmdline_parse(cmdline); + setup_mm(fdt_paddr, fdt_size); =20 /* Parse the ACPI tables for possible boot-time configuration */ --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel