[PATCH v4 1/6] boot: fdt: Change type of env_get_bootm_low() to phys_addr_t

Tom Rini trini at konsulko.com
Thu Apr 11 22:05:11 CEST 2024


On Tue, 26 Mar 2024 23:13:11 +0100, Marek Vasut wrote:

> 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 .
> 
> [...]

Applied to u-boot/master, thanks!

-- 
Tom




More information about the U-Boot mailing list