Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion libcpu/risc-v/common/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,17 @@ void rt_hw_fdt_install_early(void *fdt)
uint32_t hartid;
#ifdef ARCH_MM_MMU
int size;
const char *name = fdt_getprop(fdt, cpu, "mmu-type", RT_NULL);
const char *name;
#endif

/* Skip status=disabled (and other non-okay) CPU nodes. */
if (!rt_fdt_device_is_available(fdt, cpu))
{
continue;
}

#ifdef ARCH_MM_MMU
name = fdt_getprop(fdt, cpu, "mmu-type", RT_NULL);
#endif

if (fdt_getprop_u32(fdt, cpu, "reg", &hartid, RT_NULL))
Expand Down