diff --git a/arch/arm/src/common/arm_internal.h b/arch/arm/src/common/arm_internal.h index 6a9c01de51c..068ca0b3031 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 150323a2b57..2f83ca78df2 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