1c978b524SChris Zankel /* 2c978b524SChris Zankel * Copyright (C) 2016 Cadence Design Systems Inc. 3c978b524SChris Zankel * 4c978b524SChris Zankel * SPDX-License-Identifier: GPL-2.0+ 5c978b524SChris Zankel */ 6c978b524SChris Zankel 7*e47b2d67SSimon Glass #include <relocate.h> 8c978b524SChris Zankel #include <asm/sections.h> 9c978b524SChris Zankel #include <asm/string.h> 10c978b524SChris Zankel clear_bss(void)11c978b524SChris Zankelint clear_bss(void) 12c978b524SChris Zankel { 13c978b524SChris Zankel size_t len = (size_t)&__bss_end - (size_t)&__bss_start; 14c978b524SChris Zankel 15c978b524SChris Zankel memset((void *)&__bss_start, 0x00, len); 16c978b524SChris Zankel return 0; 17c978b524SChris Zankel } 18c978b524SChris Zankel 19