All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] board_f: Make clear_bss generic
@ 2020-02-05  6:54 Ovidiu Panait
  2020-02-13 22:11 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Ovidiu Panait @ 2020-02-05  6:54 UTC (permalink / raw)
  To: u-boot

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 <ovpanait@gmail.com>
---
 common/board_f.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/common/board_f.c b/common/board_f.c
index 8fa26e3ca5..82a164752a 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -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,
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] board_f: Make clear_bss generic
  2020-02-05  6:54 [PATCH] board_f: Make clear_bss generic Ovidiu Panait
@ 2020-02-13 22:11 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2020-02-13 22:11 UTC (permalink / raw)
  To: u-boot

On Wed, Feb 05, 2020 at 08:54:42AM +0200, Ovidiu Panait wrote:

> 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 <ovpanait@gmail.com>

Applied to u-boot/master, thanks!

-- 
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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-13 22:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05  6:54 [PATCH] board_f: Make clear_bss generic Ovidiu Panait
2020-02-13 22:11 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.