Skip to content
Snippets Groups Projects
Commit fbf9c154 authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Tom Rini
Browse files

board_f: Make clear_bss generic


clear_bss is already used by 3 arches (x86, arc, xtensa), so make it generic
and provide a weak nop stub for it. This also removes arch-specific ifdef
duplications around clear_bss.

Signed-off-by: default avatarOvidiu Panait <ovpanait@gmail.com>
parent 215df01d
No related branches found
No related tags found
No related merge requests found
...@@ -867,6 +867,11 @@ __weak int checkcpu(void) ...@@ -867,6 +867,11 @@ __weak int checkcpu(void)
return 0; return 0;
} }
__weak int clear_bss(void)
{
return 0;
}
static const init_fnc_t init_sequence_f[] = { static const init_fnc_t init_sequence_f[] = {
setup_mon_len, setup_mon_len,
#ifdef CONFIG_OF_CONTROL #ifdef CONFIG_OF_CONTROL
...@@ -1002,11 +1007,8 @@ static const init_fnc_t init_sequence_f[] = { ...@@ -1002,11 +1007,8 @@ static const init_fnc_t init_sequence_f[] = {
#if defined(CONFIG_X86) || defined(CONFIG_ARC) #if defined(CONFIG_X86) || defined(CONFIG_ARC)
copy_uboot_to_ram, copy_uboot_to_ram,
do_elf_reloc_fixups, do_elf_reloc_fixups,
clear_bss,
#endif #endif
#if defined(CONFIG_XTENSA)
clear_bss, clear_bss,
#endif
#if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) && \ #if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) && \
!CONFIG_IS_ENABLED(X86_64) !CONFIG_IS_ENABLED(X86_64)
jump_to_copy, jump_to_copy,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment