forked from Mirrors/opensbi
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>
This commit is contained in:

committed by
Anup Patel

parent
723aa88ff4
commit
c891acca17
@@ -148,7 +148,7 @@ static int generic_final_init(bool cold_boot)
|
||||
if (!cold_boot)
|
||||
return 0;
|
||||
|
||||
fdt = sbi_scratch_thishart_arg1_ptr();
|
||||
fdt = fdt_get_address();
|
||||
|
||||
fdt_cpu_fixup(fdt);
|
||||
fdt_fixups(fdt);
|
||||
@@ -177,7 +177,7 @@ static void generic_final_exit(void)
|
||||
|
||||
static int generic_domains_init(void)
|
||||
{
|
||||
return fdt_domains_populate(sbi_scratch_thishart_arg1_ptr());
|
||||
return fdt_domains_populate(fdt_get_address());
|
||||
}
|
||||
|
||||
static u64 generic_tlbr_flush_limit(void)
|
||||
@@ -189,7 +189,7 @@ static u64 generic_tlbr_flush_limit(void)
|
||||
|
||||
static int generic_pmu_init(void)
|
||||
{
|
||||
return fdt_pmu_setup(sbi_scratch_thishart_arg1_ptr());
|
||||
return fdt_pmu_setup(fdt_get_address());
|
||||
}
|
||||
|
||||
static uint64_t generic_pmu_xlate_to_mhpmevent(uint32_t event_idx,
|
||||
|
Reference in New Issue
Block a user