From ee006a79f622b39a35beaaf95d7b42b7078823f8 Mon Sep 17 00:00:00 2001 From: Deepika Bhavnani Date: Tue, 3 Sep 2019 21:51:09 +0300 Subject: Unsigned long should not be used as per coding guidelines We should either change them to `unsigned int` or `unsigned long long` when the size of the variable is the same in AArch64 and AArch32 or to `u_register_t` if it is supposed to be 32 bit wide in AArch32 and 64 bit wide in AArch64. Signed-off-by: Deepika Bhavnani Change-Id: I80e2a6edb33248ee88be395829abbd4c36c89abe --- bl1/bl1_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bl1/bl1_main.c') diff --git a/bl1/bl1_main.c b/bl1/bl1_main.c index d44b46dc9..b882a07e5 100644 --- a/bl1/bl1_main.c +++ b/bl1/bl1_main.c @@ -48,7 +48,7 @@ void bl1_calc_bl2_mem_layout(const meminfo_t *bl1_mem_layout, bl2_mem_layout->total_base = bl1_mem_layout->total_base; bl2_mem_layout->total_size = BL1_RW_BASE - bl1_mem_layout->total_base; - flush_dcache_range((unsigned long)bl2_mem_layout, sizeof(meminfo_t)); + flush_dcache_range((uintptr_t)bl2_mem_layout, sizeof(meminfo_t)); } /******************************************************************************* -- cgit v1.2.3