From patchwork Mon Apr 22 16:49:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 162609 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2801378jan; Mon, 22 Apr 2019 09:51:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4b7Re/IexzYYnc/YMWjv9PqfVOtobuOuo0EQzBJibMqMZbAD2jHn3uhiYLB/+9A+MwPhR X-Received: by 2002:a81:4b94:: with SMTP id y142mr4734830ywa.69.1555951881231; Mon, 22 Apr 2019 09:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555951881; cv=none; d=google.com; s=arc-20160816; b=aBPZpmmY6R50kpVsTnUatzeFb0JE/skGdeOlHKoz9BhqD95YXak+4e6mcvRQSXeWAa 7JwTGnVYgC8Eor+mg0Iw5xwxZodAPieJpE9gncKezL6No4SQyQKPHvSk1uWdYhEJxk8Z o9VTCVj6Wy8dveusrL83gyDPq1Dn5eJGWR4pNUDz0X6Y8hKziRhv6vMBvb/AAHpabCg3 dB0FJkJe4BnzHqwxkIBY4B7I1TnLAIU6l2x9kTbRjjiiDKREsuPYap//I8ZKREL2WssA GOaC5HQJbrvs8sDhQr0gYVmqautsramHFkEgzFQ58rdRjqgCN2rNKiAKPU/Kz2Msk9Ta Xgkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from; bh=x7j/qFxxh0s7F0qk+uH3u9rTdrBTNGFtOOEIdQZIGMo=; b=i+IpTAl197UyQO0njuQHZEEJU9xnBqQJzciLkLwJpoz/DhLCvhHqB8k8YQLU4Xqq9L F1LVX7aafG7KMrNLXrrg6wO50atOZh8iCJuvr5+1bg663uwm5Snyp7JJzMYyDhuyuH5/ AzVMMHRgl4LDA6uucas1tI2fPXQKbfc1QfKuJ3RbH7zZCd7X4oVpdh6XUlSS0ppPsyh/ jKLjrQatFgUxMrihLJPqoSwhVU7BXPSx30qTZu8iKZyK3OePT6AYJaLQ4b52OZQ2rnz6 txfeVHWvall9hMvuMuYJK1+NjA2VCEXZxO3eiPzpDPMGWYmEQfeODvuYhAPEkdaWayud iLDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id d3si9096117ybf.167.2019.04.22.09.51.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Apr 2019 09:51:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hIc8k-0004RO-7J; Mon, 22 Apr 2019 16:49:58 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hIc8j-0004R7-46 for xen-devel@lists.xenproject.org; Mon, 22 Apr 2019 16:49:57 +0000 X-Inumbo-ID: a8215803-651e-11e9-92d7-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id a8215803-651e-11e9-92d7-bc764e045a96; Mon, 22 Apr 2019 16:49:55 +0000 (UTC) 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 5D65F15AB; Mon, 22 Apr 2019 09:49:55 -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 4DF113F557; Mon, 22 Apr 2019 09:49:54 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 22 Apr 2019 17:49:20 +0100 Message-Id: <20190422164937.21350-4-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190422164937.21350-1-julien.grall@arm.com> References: <20190422164937.21350-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH 03/20] xen/arm: processor: Use _BITUL instead of _AC(1, U) in SCTLR_ defines 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: Oleksandr_Tyshchenko@epam.com, Julien Grall , sstabellini@kernel.org, Andrii_Anisov@epam.com MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The newly introduced macro _BITUL makes the code more readable. Signed-off-by: Julien Grall --- xen/include/asm-arm/processor.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h index c6f56490b3..1a143fb6a3 100644 --- a/xen/include/asm-arm/processor.h +++ b/xen/include/asm-arm/processor.h @@ -115,20 +115,20 @@ /* Bits specific to SCTLR_EL1 for Arm32 */ -#define SCTLR_A32_EL1_V (_AC(1,U)<<13) +#define SCTLR_A32_EL1_V _BITUL(13) /* Common bits for SCTLR_ELx for Arm32 */ -#define SCTLR_A32_ELx_TE (_AC(1,U)<<30) -#define SCTLR_A32_ELx_FI (_AC(1,U)<<21) +#define SCTLR_A32_ELx_TE _BITUL(30) +#define SCTLR_A32_ELx_FI _BITUL(21) /* Common bits for SCTLR_ELx on all architectures */ -#define SCTLR_Axx_ELx_EE (_AC(1,U)<<25) -#define SCTLR_Axx_ELx_WXN (_AC(1,U)<<19) -#define SCTLR_Axx_ELx_I (_AC(1,U)<<12) -#define SCTLR_Axx_ELx_C (_AC(1,U)<<2) -#define SCTLR_Axx_ELx_A (_AC(1,U)<<1) -#define SCTLR_Axx_ELx_M (_AC(1,U)<<0) +#define SCTLR_Axx_ELx_EE _BITUL(25) +#define SCTLR_Axx_ELx_WXN _BITUL(19) +#define SCTLR_Axx_ELx_I _BITUL(12) +#define SCTLR_Axx_ELx_C _BITUL(2) +#define SCTLR_Axx_ELx_A _BITUL(1) +#define SCTLR_Axx_ELx_M _BITUL(0) #define HSCTLR_BASE _AC(0x30c51878,U)