u-boot/arch/xtensa/lib/relocate.c
Shiji Yang ccea96f443 treewide: unify the linker symbol reference format
Now all linker symbols are declared as type char[]. Though we can
reference the address via both the array name 'var' and its address
'&var'. It's better to unify them to avoid confusing developers.
This patch converts all '&var' linker symbol refrences to the most
commonly used format 'var'.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2023-08-09 09:21:42 -04:00

16 lines
300 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2016 Cadence Design Systems Inc.
*/
#include <relocate.h>
#include <asm/sections.h>
#include <asm/string.h>
int clear_bss(void)
{
size_t len = (size_t)__bss_end - (size_t)__bss_start;
memset((void *)__bss_start, 0x00, len);
return 0;
}