From 47a47654e8d3997b059d11bb8845ed0037e88c8e Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Thu, 5 Aug 2021 15:41:13 +0800 Subject: 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 Reviewed-by: Anup Patel --- platform/fpga/openpiton/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/fpga') diff --git a/platform/fpga/openpiton/platform.c b/platform/fpga/openpiton/platform.c index 57ec21b..6939b57 100644 --- a/platform/fpga/openpiton/platform.c +++ b/platform/fpga/openpiton/platform.c @@ -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) -- cgit v1.2.3