Define __ramfunc__ to "locate_code(".ramfunc") farcall_function noinline_function"

instead of "__attribute__ ((section(".ramfunc"),long_call,noinline))"

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-07-27 20:32:06 +08:00 committed by Gustavo Henrique Nihei
parent 440ca48778
commit 919f8a9a72
2 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ EXTERN uint32_t _ebss; /* End+1 of .bss */
#ifdef CONFIG_ARCH_RAMFUNCS
# define __ramfunc__ __attribute__ ((section(".ramfunc"),long_call,noinline))
# define __ramfunc__ locate_code(".ramfunc") farcall_function noinline_function
/* Functions declared in the .ramfunc section will be packaged together
* by the linker script and stored in FLASH. During boot-up, the start

View File

@ -180,7 +180,7 @@ EXTERN uint32_t _ebss; /* End+1 of .bss */
#ifdef CONFIG_ARCH_RAMFUNCS
# define __ramfunc__ __attribute__ ((section(".ramfunc"),long_call,noinline))
# define __ramfunc__ locate_code(".ramfunc") farcall_function noinline_function
/* Functions declared in the .ramfunc section will be packaged together
* by the linker script and stored in FLASH. During boot-up, the start