From: Will Deacon Date: Tue, 27 Oct 2015 12:05:55 +0000 (+0000) Subject: arm64: cachetype: fix definitions of ICACHEF_* flags X-Git-Tag: v5.15~14707^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59f2413573e4ee1e76062beef4a359156500db94;p=platform%2Fkernel%2Flinux-starfive.git arm64: cachetype: fix definitions of ICACHEF_* flags test_bit and set_bit take the bit number to operate on, rather than a mask. This patch fixes the ICACHEF_* definitions so that they represent the bit index in __icache_flags as opposed to the mask returned by the BIT macro. Signed-off-by: Will Deacon Reviewed-by: Mark Rutland Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/include/asm/cachetype.h b/arch/arm64/include/asm/cachetype.h index da2fc9e..f558869 100644 --- a/arch/arm64/include/asm/cachetype.h +++ b/arch/arm64/include/asm/cachetype.h @@ -34,8 +34,8 @@ #define CTR_L1IP(ctr) (((ctr) >> CTR_L1IP_SHIFT) & CTR_L1IP_MASK) -#define ICACHEF_ALIASING BIT(0) -#define ICACHEF_AIVIVT BIT(1) +#define ICACHEF_ALIASING 0 +#define ICACHEF_AIVIVT 1 extern unsigned long __icache_flags;