bsps: Avoid use of memcpy() in bsp_fdt_copy()

The memcpy() function may be not loaded at the time bsp_fdt_copy() is
called.
This commit is contained in:
Sebastian Huber
2021-12-15 07:56:23 +01:00
parent aa95122c17
commit e3f70b379b

View File

@@ -38,7 +38,7 @@ bsp_fdt_blob[BSP_FDT_BLOB_SIZE_MAX / sizeof(uint32_t)];
void bsp_fdt_copy(const void *src)
{
const uint32_t *s = (const uint32_t *) src;
const volatile uint32_t *s = (const uint32_t *) src;
#ifdef BSP_FDT_BLOB_COPY_TO_READ_ONLY_LOAD_AREA
uint32_t *d = (uint32_t *) ((uintptr_t) &bsp_fdt_blob[0]
- (uintptr_t) bsp_section_rodata_begin