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:
parent
440ca48778
commit
919f8a9a72
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user