diff options
author | Yann Gautier <yann.gautier@st.com> | 2018-09-20 15:48:52 +0200 |
---|---|---|
committer | Yann Gautier <yann.gautier@st.com> | 2018-09-20 15:48:52 +0200 |
commit | 630cdf791450e55bb4e77040c591102911f5f146 (patch) | |
tree | e0cf34377f1e85cbb700864cdbe2f0c15471be83 | |
parent | 6254241994cc0d5ce1a8ef926e127100719154ec (diff) | |
download | arm-trusted-firmware-630cdf791450e55bb4e77040c591102911f5f146.tar.gz |
aarch32: PAR_ADDR_MASK should explicitly use BIT_64
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>
-rw-r--r-- | include/lib/aarch32/arch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lib/aarch32/arch.h b/include/lib/aarch32/arch.h index f9ed56e29..be94887f4 100644 --- a/include/lib/aarch32/arch.h +++ b/include/lib/aarch32/arch.h @@ -576,7 +576,7 @@ #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 |