From patchwork Wed Apr 19 17:13:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 97670 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp420173qgf; Wed, 19 Apr 2017 10:15:26 -0700 (PDT) X-Received: by 10.157.60.105 with SMTP id j38mr2365253ote.183.1492622126393; Wed, 19 Apr 2017 10:15:26 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id l63si1702483oig.196.2017.04.19.10.15.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Apr 2017 10:15:26 -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 1d0tAQ-0001JN-1I; Wed, 19 Apr 2017 17:13:22 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0tAO-0001IY-6N for xen-devel@lists.xen.org; Wed, 19 Apr 2017 17:13:20 +0000 Received: from [193.109.254.147] by server-3.bemta-6.messagelabs.com id E1/73-03058-FAA97F85; Wed, 19 Apr 2017 17:13:19 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRWlGSWpSXmKPExsVysyfVTXf9rO8 RBrPWMlos+biYxYHR4+ju30wBjFGsmXlJ+RUJrBkrr71lKZjMXnH07WqmBsY+ti5GLg4hgc2M EtOnX2aFcE4zSvRfWcfSxcjJwSagKXHn8ycmEFtEQFri2ufLjCA2s4CDxJuP98BqhAWCJJZ/W cQKYrMIqEpMW9wOVsMrYCHxffMnNhBbQkBeYlfbRbAaTgFLiZObj4PVCAHV3Dq1m2UCI/cCRo ZVjBrFqUVlqUW6RuZ6SUWZ6RkluYmZObqGBmZ6uanFxYnpqTmJScV6yfm5mxiBHmYAgh2Mi9c GHmKU5GBSEuUtq/8eIcSXlJ9SmZFYnBFfVJqTWnyIUYaDQ0mC98BMoJxgUWp6akVaZg4w1GDS Ehw8SiK810DSvMUFibnFmekQqVOMuhxz7n19zyTEkpeflyolztsFUiQAUpRRmgc3Ahb2lxhlp YR5GYGOEuIpSC3KzSxBlX/FKM7BqCTMOwtkCk9mXgncpldARzABHRER8AXkiJJEhJRUA+Pp30 vcQ5M6XobP4i+7ZcZxr/jangzv+1vKvwn8jD1954CLwVPJp+Viybd+Gv/dEvY5QkpF75zJU66 4H36d/RX6QncTVM71324+9e3xnoaokxP3XZb2XOka0FO456Da96YlCXpLAnzkr+Trb1hQa3nj 4L05CpfcxCebvks5vn76ntdV99c+eGKjxFKckWioxVxUnAgAGqsBMXYCAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-8.tower-27.messagelabs.com!1492621998!87712323!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 28649 invoked from network); 19 Apr 2017 17:13:18 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-8.tower-27.messagelabs.com with SMTP; 19 Apr 2017 17:13:18 -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 44330169E; Wed, 19 Apr 2017 10:13:18 -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 A6F653F4FF; Wed, 19 Apr 2017 10:13:17 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Wed, 19 Apr 2017 18:13:08 +0100 Message-Id: <20170419171311.3243-2-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170419171311.3243-1-julien.grall@arm.com> References: <20170419171311.3243-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH for-4.9 1/4] 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 --- 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)