@@ -26,28 +26,28 @@ extern volatile uintptr_t __stack_chk_guard;
2626 */
2727void z_data_copy (void )
2828{
29- z_early_memcpy (& __data_region_start , & __data_region_load_start ,
29+ arch_early_memcpy (& __data_region_start , & __data_region_load_start ,
3030 __data_region_end - __data_region_start );
3131#ifdef CONFIG_ARCH_HAS_RAMFUNC_SUPPORT
32- z_early_memcpy (& __ramfunc_region_start , & __ramfunc_load_start ,
32+ arch_early_memcpy (& __ramfunc_region_start , & __ramfunc_load_start ,
3333 __ramfunc_end - __ramfunc_region_start );
3434#endif /* CONFIG_ARCH_HAS_RAMFUNC_SUPPORT */
3535#ifdef CONFIG_ARCH_HAS_NOCACHE_MEMORY_SUPPORT
3636#if CONFIG_NOCACHE_MEMORY
37- z_early_memcpy (& _nocache_load_ram_start , & _nocache_load_rom_start ,
37+ arch_early_memcpy (& _nocache_load_ram_start , & _nocache_load_rom_start ,
3838 (uintptr_t ) & _nocache_load_ram_size );
3939#endif /* CONFIG_NOCACHE_MEMORY */
4040#endif /* CONFIG_ARCH_HAS_NOCACHE_MEMORY_SUPPORT */
4141#if DT_NODE_HAS_STATUS_OKAY (DT_CHOSEN (zephyr_ccm ))
42- z_early_memcpy (& __ccm_data_start , & __ccm_data_load_start ,
42+ arch_early_memcpy (& __ccm_data_start , & __ccm_data_load_start ,
4343 __ccm_data_end - __ccm_data_start );
4444#endif
4545#if DT_NODE_HAS_STATUS_OKAY (DT_CHOSEN (zephyr_itcm ))
46- z_early_memcpy (& __itcm_start , & __itcm_load_start ,
46+ arch_early_memcpy (& __itcm_start , & __itcm_load_start ,
4747 (uintptr_t ) & __itcm_size );
4848#endif
4949#if DT_NODE_HAS_STATUS_OKAY (DT_CHOSEN (zephyr_dtcm ))
50- z_early_memcpy (& __dtcm_data_start , & __dtcm_data_load_start ,
50+ arch_early_memcpy (& __dtcm_data_start , & __dtcm_data_load_start ,
5151 __dtcm_data_end - __dtcm_data_start );
5252#endif
5353#ifdef CONFIG_CODE_DATA_RELOCATION
@@ -75,7 +75,7 @@ void z_data_copy(void)
7575 }
7676 __stack_chk_guard = guard_copy ;
7777#else
78- z_early_memcpy (& _app_smem_start , & _app_smem_rom_start ,
78+ arch_early_memcpy (& _app_smem_start , & _app_smem_rom_start ,
7979 _app_smem_end - _app_smem_start );
8080#endif /* CONFIG_REQUIRES_STACK_CANARIES */
8181#endif /* CONFIG_USERSPACE */
0 commit comments