From patchwork Wed Jun 22 13:21:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 70646 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp2547209qgy; Wed, 22 Jun 2016 06:23:40 -0700 (PDT) X-Received: by 10.107.53.233 with SMTP id k102mr40221524ioo.134.1466601813553; Wed, 22 Jun 2016 06:23:33 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id 72si632757iob.70.2016.06.22.06.23.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jun 2016 06:23:33 -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 1bFi5r-00017Q-B1; Wed, 22 Jun 2016 13:21:23 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFi5q-00016i-9U for xen-devel@lists.xen.org; Wed, 22 Jun 2016 13:21:22 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id F1/82-11548-1D09A675; Wed, 22 Jun 2016 13:21:21 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRWlGSWpSXmKPExsVysyfVTffChKx wg7fPrS2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oxPnx6wFBxlq3jzcANzA+MC1i5GLg4hgU2M Et23zrFDOKcZJebf/c/UxcjJwSagKXHn8ycwW0RAWuLa58uMIEXMAm2MEmtnT2UESQgLhEscb 7vCAmKzCKhK/Ji9kBXE5hVwkeh/tQusRkJATuLksclgcU4BV4n/55vAbCGgmnWfz7NOYORewM iwilG9OLWoLLVI10gvqSgzPaMkNzEzR9fQwEwvN7W4ODE9NScxqVgvOT93EyPQwwxAsINx2V+ nQ4ySHExKorzyylnhQnxJ+SmVGYnFGfFFpTmpxYcYZTg4lCR4t/cD5QSLUtNTK9Iyc4ChBpOW 4OBREuGNBEnzFhck5hZnpkOkTjHqciz4cXstkxBLXn5eqpQ4bw1IkQBIUUZpHtwIWNhfYpSVE uZlBDpKiKcgtSg3swRV/hWjOAejkjDvHJApPJl5JXCbXgEdwQR0xLL+dJAjShIRUlINjGmHIl S3nhZJrexefbfl7KtAljKDkDbDMwnVJvpF+uZPVX651b5uM7a1O9WYp8tTM6P5xSxHDbEbp8V Usp+XfuP87ti39En/WtPGX9va3Nw+dGsWX3UIrBF+vNknN7k0qsexanLM5sKnRZdsnE4+XlVf 7VxnWPz1QFRqV+7zl5NalD9eeJmoxFKckWioxVxUnAgABmuacnYCAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-10.tower-21.messagelabs.com!1466601680!20149229!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: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 38317 invoked from network); 22 Jun 2016 13:21:20 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-10.tower-21.messagelabs.com with SMTP; 22 Jun 2016 13:21:20 -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 1DF96440; Wed, 22 Jun 2016 06:22:06 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.215.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 07C583F21A; Wed, 22 Jun 2016 06:21:17 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Wed, 22 Jun 2016 14:21:01 +0100 Message-Id: <1466601669-25398-2-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466601669-25398-1-git-send-email-julien.grall@arm.com> References: <1466601669-25398-1-git-send-email-julien.grall@arm.com> Cc: andre.przywara@arm.com, Julien Grall , sstabellini@kernel.org, steve.capper@arm.com, wei.chen@linaro.org Subject: [Xen-devel] [PATCH 1/9] xen/arm: Simply the definition of PAGE_SIZE by using the macro _AC 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 macro _AC is used to define constant for both assembly and C. Signed-off-by: Julien Grall --- xen/include/asm-arm/config.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h index 9417be6..a96f845 100644 --- a/xen/include/asm-arm/config.h +++ b/xen/include/asm-arm/config.h @@ -176,12 +176,7 @@ #define FIXMAP_ACPI_END (FIXMAP_ACPI_BEGIN + NUM_FIXMAP_ACPI_PAGES - 1) /* End mappings of ACPI tables */ #define PAGE_SHIFT 12 - -#ifndef __ASSEMBLY__ -#define PAGE_SIZE (1L << PAGE_SHIFT) -#else -#define PAGE_SIZE (1 << PAGE_SHIFT) -#endif +#define PAGE_SIZE (_AC(1,L) << PAGE_SHIFT) #define PAGE_MASK (~(PAGE_SIZE-1)) #define PAGE_FLAG_MASK (~0)