aarch32: PAR_ADDR_MASK should explicitly use BIT_64
authorYann Gautier <yann.gautier@st.com>
Thu, 20 Sep 2018 13:48:52 +0000 (15:48 +0200)
committerYann Gautier <yann.gautier@st.com>
Thu, 20 Sep 2018 13:48:52 +0000 (15:48 +0200)
PAR register used here is a 64 bit register.
On AARCH32 BIT macro is BIT_32.
PAR_ADDR_MASK should then use BIT_64 to avoid overflow.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
include/lib/aarch32/arch.h

index f9ed56e29d59f3865490c5c0db4d18b56ce6ef5b..be94887f40d81b4e829c95dc0fbb617477de4b38 100644 (file)
 #define PAR_F_SHIFT    U(0)
 #define PAR_F_MASK     ULL(0x1)
 #define PAR_ADDR_SHIFT U(12)
-#define PAR_ADDR_MASK  (BIT(40) - ULL(1)) /* 40-bits-wide page address */
+#define PAR_ADDR_MASK  (BIT_64(40) - ULL(1)) /* 40-bits-wide page address */
 
 /*******************************************************************************
  * Definitions for system register interface to AMU for ARMv8.4 onwards