summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-08-21 12:52:26 +0200
committerArthur Heymans <arthur@aheymans.xyz>2024-08-27 00:29:12 +0000
commit338b5cd6da1d9b0e08d1c9fdb2520e415ae3f7f0 (patch)
tree5c9494379c9f235abd1426ac5594bf4d4064ac6e /payloads
parentfef29fc56ffbfb60af2751b07427191a0e14b211 (diff)
libpayload: Use unsigned integer for PDG_MASK
The clang compiler warns about undefined behavior about shifting signed integers. Change-Id: Ic4ce64207393ec4a8d6b188b35e0f436342826de Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84007 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/arch/arm/virtual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/arch/arm/virtual.c b/payloads/libpayload/arch/arm/virtual.c
index 867a43b442..cfc7af1d4d 100644
--- a/payloads/libpayload/arch/arm/virtual.c
+++ b/payloads/libpayload/arch/arm/virtual.c
@@ -71,7 +71,7 @@ typedef uint64_t pgd_t;
#define SECTION_SHIFT 30
#define BLOCK_SHIFT 21
#define PAGE_SHIFT 12
-#define PGD_MASK (~0 << PAGE_SHIFT)
+#define PGD_MASK (~0u << PAGE_SHIFT)
static pmd_t *ttb_buff = 0;
static uintptr_t work_block;