mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v3 1/3] MIPS: reloc: remove init of relocated bss
@ 2019-10-21 11:50 Oleksij Rempel
  2019-10-21 11:50 ` [PATCH v3 2/3] MIPS: move r4k_cache_init in to cpu_probe function Oleksij Rempel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Oleksij Rempel @ 2019-10-21 11:50 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

It will be done in main_entry() any way.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 arch/mips/lib/reloc.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/arch/mips/lib/reloc.c b/arch/mips/lib/reloc.c
index 9a9e404f7e..798a68680d 100644
--- a/arch/mips/lib/reloc.c
+++ b/arch/mips/lib/reloc.c
@@ -110,7 +110,7 @@ void relocate_code(void *fdt, u32 fdt_size, u32 ram_size)
 {
 	unsigned long addr, length, bss_len;
 	u32 relocaddr, new_stack;
-	uint8_t *buf, *bss_start;
+	uint8_t *buf;
 	unsigned int type;
 	long off;
 
@@ -149,10 +149,6 @@ void relocate_code(void *fdt, u32 fdt_size, u32 ram_size)
 	/* Ensure the icache is coherent */
 	flush_cache_all();
 
-	/* Clear the .bss section */
-	bss_start = (uint8_t *)((unsigned long)__bss_start + off);
-	memset(bss_start, 0, bss_len);
-
 	 __asm__ __volatile__ (
 			"move	$a0, %0\n"
 		"	move	$a1, %1\n"
-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-10-23  7:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-21 11:50 [PATCH v3 1/3] MIPS: reloc: remove init of relocated bss Oleksij Rempel
2019-10-21 11:50 ` [PATCH v3 2/3] MIPS: move r4k_cache_init in to cpu_probe function Oleksij Rempel
2019-10-21 11:50 ` [PATCH v3 3/3] MIPS: reloc: init bss and cpu Oleksij Rempel
2019-10-23  7:06 ` [PATCH v3 1/3] MIPS: reloc: remove init of relocated bss Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox