From 919f8a9a720d6d15a6c7c00fde4ce7592b1986a1 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 27 Jul 2021 20:32:06 +0800 Subject: [PATCH] Define __ramfunc__ to "locate_code(".ramfunc") farcall_function noinline_function" instead of "__attribute__ ((section(".ramfunc"),long_call,noinline))" Signed-off-by: Xiang Xiao --- arch/arm/src/common/arm_internal.h | 2 +- arch/or1k/src/common/up_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/common/arm_internal.h b/arch/arm/src/common/arm_internal.h index 6a9c01de51..068ca0b303 100644 --- a/arch/arm/src/common/arm_internal.h +++ b/arch/arm/src/common/arm_internal.h @@ -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 diff --git a/arch/or1k/src/common/up_internal.h b/arch/or1k/src/common/up_internal.h index 150323a2b5..2f83ca78df 100644 --- a/arch/or1k/src/common/up_internal.h +++ b/arch/or1k/src/common/up_internal.h @@ -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