board_f: Make clear_bss generic
PATCH 1/1 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 Ovidiu Panait <[email protected]>
--- common/board_f.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
common/board_f.c +5 -3
@@ -867,6 +867,11 @@ __weak int checkcpu(void)return 0 ; } +__weak int clear_bss (void ) +{ +return 0 ; +} +static const init_fnc_t init_sequence_f[] = { setup_mon_len, #ifdef CONFIG_OF_CONTROL
@@ -1002,11 +1007,8 @@ static const init_fnc_t init_sequence_f[] = {#if defined(CONFIG_X86 ) || defined(CONFIG_ARC ) copy_uboot_to_ram, do_elf_reloc_fixups, - clear_bss, #endif -#if defined(CONFIG_XTENSA) clear_bss, -#endif #if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) && \ !CONFIG_IS_ENABLED (X86_64 ) jump_to_copy,
Signature · 1 line
2.17.1
PATCH 1/1 board_f: Make clear_bss generic
Quoted 5 lines · Ovidiu Panait
clear_bssis 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 aroundclear_bss.Signed-off-by Ovidiu Panait <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200213/76f431f5/attachment.sig>