mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 17:41:08 +00:00
e47b2d674f
This header file is used by three archs. It could be used by all of them since relocation is a common function. Move it into a generic file. Signed-off-by: Simon Glass <sjg@chromium.org>
18 lines
307 B
C
18 lines
307 B
C
/*
|
|
* Copyright (C) 2016 Cadence Design Systems Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#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;
|
|
}
|
|
|