diff options
-rw-r--r-- | arch/mips/lib/reloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/lib/reloc.c b/arch/mips/lib/reloc.c index 798a68680d..df9760e38c 100644 --- a/arch/mips/lib/reloc.c +++ b/arch/mips/lib/reloc.c @@ -115,6 +115,8 @@ void relocate_code(void *fdt, u32 fdt_size, u32 ram_size) long off; bss_len = (unsigned long)&__bss_stop - (unsigned long)__bss_start; + memset(__bss_start, 0, bss_len); + cpu_probe(); length = barebox_image_size + bss_len; relocaddr = ALIGN_DOWN(ram_size - length, SZ_64K); |