summaryrefslogtreecommitdiff
path: root/lib/utils/reset
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2021-08-05 10:41:13 +0300
committerAnup Patel <anup@brainfault.org>2021-08-07 14:56:51 +0300
commit47a47654e8d3997b059d11bb8845ed0037e88c8e (patch)
tree39b7eaadcadaa19e40f59f58fd1704dcad366395 /lib/utils/reset
parentd244f3dbd6cfd241dc1db611c0325daedfcab9c6 (diff)
downloadopensbi-47a47654e8d3997b059d11bb8845ed0037e88c8e.tar.xz
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>
Diffstat (limited to 'lib/utils/reset')
-rw-r--r--lib/utils/reset/fdt_reset_sifive_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/reset/fdt_reset_sifive_test.c b/lib/utils/reset/fdt_reset_sifive_test.c
index f98f03d..b0b59e7 100644
--- a/lib/utils/reset/fdt_reset_sifive_test.c
+++ b/lib/utils/reset/fdt_reset_sifive_test.c
@@ -16,7 +16,7 @@ static int sifive_test_reset_init(void *fdt, int nodeoff,
const struct fdt_match *match)
{
int rc;
- unsigned long addr;
+ uint64_t addr;
rc = fdt_get_node_addr_size(fdt, nodeoff, &addr, NULL);
if (rc)