blob: 3f747ec55a1cf699af1a3f8376de29f7f7c9f9f2 [file] [log] [blame]
Chris Zankelc978b522016-08-10 18:36:44 +03001/*
2 * Copyright (C) 2016 Cadence Design Systems Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <asm/relocate.h>
8#include <asm/sections.h>
9#include <asm/string.h>
10
11int clear_bss(void)
12{
13 size_t len = (size_t)&__bss_end - (size_t)&__bss_start;
14
15 memset((void *)&__bss_start, 0x00, len);
16 return 0;
17}
18