forked from Imagelibrary/rtems
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user