From c891acca172dfc60719419e19338508a83d97931 Mon Sep 17 00:00:00 2001 From: Alexandre Ghiti <alexandre.ghiti@canonical.com> Date: Wed, 27 Oct 2021 09:43:36 +0200 Subject: include: sbi_utils: Introduce an helper to get fdt base address This simply adds an helper to get fdt address which is more explicit than sbi_scratch_thishart_arg1_ptr. Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com> Reviewed-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup.patel@wdc.com> --- lib/utils/ipi/fdt_ipi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utils/ipi/fdt_ipi.c') diff --git a/lib/utils/ipi/fdt_ipi.c b/lib/utils/ipi/fdt_ipi.c index ed56e49..91f116f 100644 --- a/lib/utils/ipi/fdt_ipi.c +++ b/lib/utils/ipi/fdt_ipi.c @@ -45,7 +45,7 @@ static int fdt_ipi_cold_init(void) int pos, noff, rc; struct fdt_ipi *drv; const struct fdt_match *match; - void *fdt = sbi_scratch_thishart_arg1_ptr(); + void *fdt = fdt_get_address(); for (pos = 0; pos < array_size(ipi_drivers); pos++) { drv = ipi_drivers[pos]; -- cgit v1.2.3