xref: /openbmc/u-boot/arch/xtensa/lib/relocate.c (revision e3963c09)
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2016 Cadence Design Systems Inc.
4  */
5 
6 #include <relocate.h>
7 #include <asm/sections.h>
8 #include <asm/string.h>
9 
10 int clear_bss(void)
11 {
12 	size_t len = (size_t)&__bss_end - (size_t)&__bss_start;
13 
14 	memset((void *)&__bss_start, 0x00, len);
15 	return 0;
16 }
17 
18