Replace all __attribute__((weak)) with weak_data/weak_function

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-07-27 20:11:11 +08:00 committed by Gustavo Henrique Nihei
parent 007adc7736
commit 21b69cfd5d
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ extern uint32_t __sram_end__;
* address. * address.
*/ */
const uintptr_t __attribute__((weak)) g_idle_topstack = const uintptr_t weak_data g_idle_topstack =
((uintptr_t)&__stack); ((uintptr_t)&__stack);
/**************************************************************************** /****************************************************************************

View File

@ -90,7 +90,7 @@ static bool spiram_inited = false;
* no memory is reserved if no himem function is used. * no memory is reserved if no himem function is used.
*/ */
size_t __attribute__((weak)) esp_himem_reserved_area_size(void) size_t weak_function esp_himem_reserved_area_size(void)
{ {
return 0; return 0;
} }