mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-29 22:43:10 +00:00
ccea96f443
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>
16 lines
300 B
C
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;
|
|
}
|