lib: utils/fdt: Change addr and size to uint64_t

The maximum address and size encoded in DT are 64-bit numbers, so we
should use uint64_t for 'addr' and 'size' in fdt_get_node_addr_size().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
Bin Meng authored and Anup Patel committed 2021-08-07 17:26:51 +05:30
1 parent d244f3dbd6
commit 47a47654e8
5 files changed
+17 -16

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ static int openpiton_early_init(bool cold_boot)
void *fdt;
struct platform_uart_data uart_data;
struct plic_data plic_data;
unsigned long clint_addr;
uint64_t clint_addr;
int rc;
if (!cold_boot)