We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96da7ab commit 4451562Copy full SHA for 4451562
libcpu/aarch64/common/setup.c
@@ -237,14 +237,14 @@ void rt_hw_common_setup(void)
237
238
/* To virtual address */
239
fdt_ptr = (void *)(fdt_ptr - pv_off);
240
-
+#ifdef KERNEL_VADDR_START
241
if ((rt_ubase_t)fdt_ptr + fdt_size - KERNEL_VADDR_START > SIZE_GB)
242
{
243
fdt_ptr = rt_ioremap_early(fdt_ptr + pv_off, fdt_size);
244
245
RT_ASSERT(fdt_ptr != RT_NULL);
246
}
247
+#endif
248
rt_memmove((void *)(fdt_start - pv_off), fdt_ptr, fdt_size);
249
fdt_ptr = (void *)fdt_start - pv_off;
250
0 commit comments