Skip to content

Commit 3fb599e

Browse files
committed
arch: init: rename z_data_copy -> arch_data_copy
Do not use private API prefix and move to architecture interface as those functions are primarily used across arches and can be defined by the architecture. Signed-off-by: Anas Nashif <[email protected]>
1 parent 38ea363 commit 3fb599e

File tree

15 files changed

+19
-19
lines changed

15 files changed

+19
-19
lines changed

arch/arc/core/prep_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void z_prep_c(void)
9696
#ifdef __CCAC__
9797
dev_state_zero();
9898
#endif
99-
z_data_copy();
99+
arch_data_copy();
100100
#if CONFIG_ARCH_CACHE
101101
arch_cache_init();
102102
#endif

arch/arm/core/cortex_a_r/prep_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void z_prep_c(void)
110110
z_arm_floating_point_init();
111111
#endif
112112
arch_bss_zero();
113-
z_data_copy();
113+
arch_data_copy();
114114
#if ((defined(CONFIG_ARMV7_R) || defined(CONFIG_ARMV7_A)) && defined(CONFIG_INIT_STACKS))
115115
z_arm_init_stacks();
116116
#endif

arch/arm/core/cortex_m/prep_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void z_prep_c(void)
205205
z_arm_floating_point_init();
206206
#endif
207207
arch_bss_zero();
208-
z_data_copy();
208+
arch_data_copy();
209209
#if defined(CONFIG_ARM_CUSTOM_INTERRUPT_CONTROLLER)
210210
/* Invoke SoC-specific interrupt controller initialization */
211211
z_soc_irq_init();

arch/arm64/core/prep_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void z_prep_c(void)
4141
write_tpidrro_el0((uintptr_t)&_kernel.cpus[0]);
4242

4343
arch_bss_zero();
44-
z_data_copy();
44+
arch_data_copy();
4545
#ifdef CONFIG_ARM64_SAFE_EXCEPTION_STACK
4646
/* After bss clean, _kernel.cpus is in bss section */
4747
z_arm64_safe_exception_stack_init();

arch/common/xip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extern volatile uintptr_t __stack_chk_guard;
2424
*
2525
* This routine copies the data section from ROM to RAM.
2626
*/
27-
void z_data_copy(void)
27+
void arch_data_copy(void)
2828
{
2929
arch_early_memcpy(&__data_region_start, &__data_region_load_start,
3030
__data_region_end - __data_region_start);

arch/riscv/core/prep_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void z_prep_c(void)
4141
#endif
4242

4343
arch_bss_zero();
44-
z_data_copy();
44+
arch_data_copy();
4545
#if defined(CONFIG_RISCV_SOC_INTERRUPT_INIT)
4646
soc_interrupt_init();
4747
#endif

arch/rx/core/prep_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void z_prep_c(void)
3535
{
3636
arch_bss_zero();
3737

38-
z_data_copy();
38+
arch_data_copy();
3939

4040
z_cstart();
4141
CODE_UNREACHABLE;

arch/sparc/core/prep_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void z_prep_c(void)
2525
#if defined(CONFIG_SOC_PREP_HOOK)
2626
soc_prep_hook();
2727
#endif
28-
z_data_copy();
28+
arch_data_copy();
2929
#if CONFIG_ARCH_CACHE
3030
arch_cache_init();
3131
#endif

arch/x86/core/ia32/crt0.S

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/* externs */
3232
GTEXT(z_prep_c)
3333
GTEXT(arch_bss_zero)
34-
GTEXT(z_data_copy)
34+
GTEXT(arch_data_copy)
3535

3636
GDATA(_idt_base_address)
3737
GDATA(z_interrupt_stacks)
@@ -226,11 +226,11 @@ __csSet:
226226
* This is a must is CONFIG_GDT_DYNAMIC is enabled,
227227
* as _gdt needs to be in RAM.
228228
*/
229-
call z_data_copy
229+
call arch_data_copy
230230
#endif
231231

232232
/* Note that installing page tables must be done after
233-
* z_data_copy() as the page tables are being copied into
233+
* arch_data_copy() as the page tables are being copied into
234234
* RAM there.
235235
*/
236236
install_page_tables

arch/x86/core/intel64/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ FUNC_NORETURN void z_x86_cpu_init(struct x86_cpuboot *cpuboot)
108108
if (cpuboot->cpu_id == 0U) {
109109
/* Only need to do these once per boot */
110110
arch_bss_zero();
111-
z_data_copy();
111+
arch_data_copy();
112112
}
113113

114114
z_loapic_enable(cpuboot->cpu_id);

0 commit comments

Comments
 (0)