summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-12-15 07:56:23 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-01-19 08:11:20 +0100
commite3f70b379b812c5f6cac8e755965f3a569c3e34a (patch)
tree0e33d508ec8eb19209c074c909f807ac33d124be
parentaa95122c17707d6eaadcbdae71aad33446fcf66c (diff)
downloadrtems-e3f70b379b812c5f6cac8e755965f3a569c3e34a.tar.bz2
bsps: Avoid use of memcpy() in bsp_fdt_copy()
The memcpy() function may be not loaded at the time bsp_fdt_copy() is called.
-rw-r--r--bsps/shared/start/bsp-fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/shared/start/bsp-fdt.c b/bsps/shared/start/bsp-fdt.c
index f0a7e54572..bdb33be2e8 100644
--- a/bsps/shared/start/bsp-fdt.c
+++ b/bsps/shared/start/bsp-fdt.c
@@ -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