summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2019-10-21 13:50:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-23 09:05:54 +0200
commit0ca2c61a2b99ea56b1e9a44ae3df1483245d299e (patch)
tree593de0112d993379561060c2a479221bcec66d1e
parent27ee6010f89b4b2cd1e9e05975c1af2887ef04c5 (diff)
downloadbarebox-0ca2c61a2b99ea56b1e9a44ae3df1483245d299e.tar.gz
barebox-0ca2c61a2b99ea56b1e9a44ae3df1483245d299e.tar.xz
MIPS: reloc: remove init of relocated bss
It will be done in main_entry() any way. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/mips/lib/reloc.c6
1 files changed, 1 insertions, 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"