diff options
author | Joanna Farley <joanna.farley@arm.com> | 2020-10-18 14:51:00 +0000 |
---|---|---|
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | 2020-10-18 14:51:00 +0000 |
commit | 943aff0c16434d558d3e1f5744d6119b49970504 (patch) | |
tree | e58b88828fa7d1946361c9ef45f9f1128cf92c89 /common/bl_common.c | |
parent | 4a6b33ec17702dfa23d8380e8e55b7f49f49dc7a (diff) | |
parent | d7b5f40823d449cc79e6440174390997cf11a9d9 (diff) | |
download | platform_external_arm-trusted-firmware-943aff0c16434d558d3e1f5744d6119b49970504.tar.gz platform_external_arm-trusted-firmware-943aff0c16434d558d3e1f5744d6119b49970504.tar.bz2 platform_external_arm-trusted-firmware-943aff0c16434d558d3e1f5744d6119b49970504.zip |
Merge "Increase type widths to satisfy width requirements" into integration
Diffstat (limited to 'common/bl_common.c')
-rw-r--r-- | common/bl_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/bl_common.c b/common/bl_common.c index 2fcb5385d..f17afcb11 100644 --- a/common/bl_common.c +++ b/common/bl_common.c @@ -50,8 +50,8 @@ static int dyn_is_auth_disabled(void) uintptr_t page_align(uintptr_t value, unsigned dir) { /* Round up the limit to the next page boundary */ - if ((value & (PAGE_SIZE - 1U)) != 0U) { - value &= ~(PAGE_SIZE - 1U); + if ((value & PAGE_SIZE_MASK) != 0U) { + value &= ~PAGE_SIZE_MASK; if (dir == UP) value += PAGE_SIZE; } |