From: Bin Meng Date: Sun, 31 Jan 2021 12:35:59 +0000 (+0800) Subject: global_data.h: Change ram_top type to phys_addr_t X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=37dc958947ed305fcbd732172e22ff758f43208a;p=u-boot.git global_data.h: Change ram_top type to phys_addr_t It's possible to have ram_top above 4 GiB in a 32-bit system, hence we need to declare ram_top as `phys_addr_t`. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index b6f707e97e..998beb0176 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -147,7 +147,7 @@ struct global_data { /** * @ram_top: top address of RAM used by U-Boot */ - unsigned long ram_top; + phys_addr_t ram_top; /** * @relocaddr: start address of U-Boot in RAM *