From: Sergej Proskurin Date: Wed, 16 Aug 2017 13:17:37 +0000 (+0200) Subject: arm/mem_access: Introduce BIT_ULL bit operation X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1648 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2af2c66f39c88cf42e8ef27e6badf8baf35aee4c;p=xen.git arm/mem_access: Introduce BIT_ULL bit operation We introduce the BIT_ULL macro to using values of unsigned long long as to enable setting bits of 64-bit registers on AArch32. In addition, this commit adds a define holding the register width of 64 bit double-word registers. This define simplifies using the associated constants in the following commits. Signed-off-by: Sergej Proskurin Reviewed-by: Julien Grall Signed-off-by: Stefano Stabellini --- diff --git a/xen/include/asm-arm/bitops.h b/xen/include/asm-arm/bitops.h index bda889841b..1cbfb9edb2 100644 --- a/xen/include/asm-arm/bitops.h +++ b/xen/include/asm-arm/bitops.h @@ -24,6 +24,7 @@ #define BIT(nr) (1UL << (nr)) #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_WORD)) #define BIT_WORD(nr) ((nr) / BITS_PER_WORD) +#define BIT_ULL(nr) (1ULL << (nr)) #define BITS_PER_BYTE 8 #define ADDR (*(volatile int *) addr)