From patchwork Thu Apr 20 15:12:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 97826 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp846179qgf; Thu, 20 Apr 2017 08:14:39 -0700 (PDT) X-Received: by 10.202.98.194 with SMTP id w185mr4273561oib.172.1492701279172; Thu, 20 Apr 2017 08:14:39 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id q84si3473452oia.275.2017.04.20.08.14.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Apr 2017 08:14:39 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1DlC-00053c-Sa; Thu, 20 Apr 2017 15:12:42 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1DlC-000530-C8 for xen-devel@lists.xen.org; Thu, 20 Apr 2017 15:12:42 +0000 Received: from [85.158.139.211] by server-15.bemta-5.messagelabs.com id BD/61-01730-9EFC8F85; Thu, 20 Apr 2017 15:12:41 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRWlGSWpSXmKPExsVysyfVTffZ+R8 RBs3LmS2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oxNy9tZCjo4KnovdTI3ML5i62Lk4hAS2Mwo 8fH4chYI5zSjxI5FF1i7GDk52AQ0Je58/sQEYosISEtc+3yZEcRmFnCQePPxHguILSwQKvF8Y QNYDYuAqsTbH1/BenkFLCWWTuwGsyUE5CV2tV0EszkFrCR67kDMFAKq6Zu2mWkCI/cCRoZVjO rFqUVlqUW65npJRZnpGSW5iZk5uoYGpnq5qcXFiempOYlJxXrJ+bmbGIH+ZQCCHYzHJjsfYpT kYFIS5VWb+yNCiC8pP6UyI7E4I76oNCe1+BCjDAeHkgTvi3NAOcGi1PTUirTMHGCgwaQlOHiU RHhPg6R5iwsSc4sz0yFSpxgVpcR5i0ESAiCJjNI8uDZYcF9ilJUS5mUEOkSIpyC1KDezBFX+F aM4B6OSMK8UMFaEeDLzSuCmvwJazAS0+Kwf2OKSRISUVAMje9wVuTsWTTPZt1i/LS5d2jbhBw N/55xXf/Jup/KcC2Y5vles9cGdk9VrU+MUsrZ+uTZf+sj9JLXipMYJe/f94LBQ1Nd3v5p9Mvf oN71Nv1v78mI9Stg+cqtnpTrNbfpnbWG2bc3sJXzObNbuexUUirn3fLbhDu1I/seb49+p5l9e MWveqmAlluKMREMt5qLiRAAAoMYAaQIAAA== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-13.tower-206.messagelabs.com!1492701157!78778486!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests=UPPERCASE_25_50 X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 39298 invoked from network); 20 Apr 2017 15:12:37 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-13.tower-206.messagelabs.com with SMTP; 20 Apr 2017 15:12:37 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4357215A2; Thu, 20 Apr 2017 08:12:37 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A38C43F4FF; Thu, 20 Apr 2017 08:12:36 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 20 Apr 2017 16:12:24 +0100 Message-Id: <20170420151228.19158-2-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170420151228.19158-1-julien.grall@arm.com> References: <20170420151228.19158-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH v2 for-4.9 1/5] xen/arm: Add BOOT_FDT_VIRT_END and BOOT_FDT_SLOT_SIZE 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: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" The 2 new defines will help to avoid hardcoding the size and the end of the slot in the code. The newlines are added for clarity. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes in v2: - Add Stefano's reviewed-by --- xen/include/asm-arm/config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h index b2edf95f72..9c14a385e7 100644 --- a/xen/include/asm-arm/config.h +++ b/xen/include/asm-arm/config.h @@ -111,7 +111,11 @@ #define XEN_VIRT_START _AT(vaddr_t,0x00200000) #define FIXMAP_ADDR(n) (_AT(vaddr_t,0x00400000) + (n) * PAGE_SIZE) + #define BOOT_FDT_VIRT_START _AT(vaddr_t,0x00600000) +#define BOOT_FDT_SLOT_SIZE MB(2) +#define BOOT_FDT_VIRT_END (BOOT_FDT_VIRT_START + BOOT_FDT_SLOT_SIZE) + #define BOOT_RELOC_VIRT_START _AT(vaddr_t,0x00800000) #ifdef CONFIG_LIVEPATCH #define LIVEPATCH_VMAP_START _AT(vaddr_t,0x00800000)