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: 9192769 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 5CFCF6075A for ; Wed, 22 Jun 2016 13:23:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E452283F7 for ; Wed, 22 Jun 2016 13:23:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 430B328406; Wed, 22 Jun 2016 13:23:31 +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 01AA228402 for ; Wed, 22 Jun 2016 13:23:31 +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 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" X-Virus-Scanned: ClamAV using ClamSMTP The macro _AC is used to define constant for both assembly and C. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- 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)