]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: eeprom: don't truncate target address at 32-bit
authorBaruch Siach <baruch@tkos.co.il>
Sun, 23 Oct 2022 09:28:12 +0000 (12:28 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 2 Nov 2022 17:58:17 +0000 (13:58 -0400)
commit42593c3df7b04e839f5323a06702b17916af4677
tree879a6eaa376e14ce4956c7f3a1f7525358e36720
parentb9c468a0ba4aaeb98ec01d2185754fc3f26e8b7e
cmd: eeprom: don't truncate target address at 32-bit

On 64-bit platforms where int is 32-bit wide, the eeprom command
parse_numeric_param() routine truncates the memory address parameter to
the lower 32-bit. Make parse_numeric_param() return long to allow
read/write of addresses beyond the lower 4GB.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
cmd/eeprom.c