]> git.dujemihanovic.xyz Git - u-boot.git/commit
boot: fdt: Change type of env_get_bootm_low() to phys_addr_t
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 26 Mar 2024 22:13:11 +0000 (23:13 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 11 Apr 2024 15:38:57 +0000 (09:38 -0600)
commita4df06e41fa29ebc2b31b15ae229b2273af69fa6
tree16252c9d012f367b0b660d4ad5224eff48a733f1
parentd545fe3b82ca319f699abb40f59f7ab5f8116de5
boot: fdt: Change type of env_get_bootm_low() to phys_addr_t

Change type of ulong env_get_bootm_low() to phys_addr_t env_get_bootm_low().
The PPC/LS systems already treat env_get_bootm_low() result as phys_addr_t,
while the function itself still returns ulong. This is potentially dangerous
on 64bit systems, where ulong might not be large enough to hold the content
of "bootm_low" environment variable. Fix it by using phys_addr_t, similar to
what env_get_bootm_size() does, which returns phys_size_t .

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
boot/bootm.c
boot/image-board.c
boot/image-fdt.c
include/image.h