From e78f36e2291239e3f36ae35bd8cbfcdc7ffaa7c2 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 4 Apr 2014 08:59:39 -0600 Subject: [PATCH] SAMA5: Update from David Sidrane to last RAM function change: Apparently inline functions need to placed into the same RAM section, or they do not get inlined. From David Sidrane --- arch/arm/src/sama5/sam_clockconfig.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/src/sama5/sam_clockconfig.c b/arch/arm/src/sama5/sam_clockconfig.c index 657edd6b341..ed8cb3bf6ab 100644 --- a/arch/arm/src/sama5/sam_clockconfig.c +++ b/arch/arm/src/sama5/sam_clockconfig.c @@ -109,7 +109,7 @@ ****************************************************************************/ #if defined(NEED_PLLSETUP) -static void sam_pmcwait(uint32_t bit) +static void __ramfunc__ sam_pmcwait(uint32_t bit) { /* There is no timeout on this wait. Why not? Because the symptoms there * is no fallback if the wait times out and if the wait does time out, it @@ -130,7 +130,7 @@ static void sam_pmcwait(uint32_t bit) ****************************************************************************/ #if defined(NEED_PLLSETUP) -static inline void sam_enablemosc(void) +static inline void __ramfunc__ sam_enablemosc(void) { uint32_t regval; @@ -185,7 +185,7 @@ static inline void sam_enablemosc(void) ****************************************************************************/ #if defined(NEED_PLLSETUP) -static inline void sam_selectmosc(void) +static inline void __ramfunc__ sam_selectmosc(void) { uint32_t regval; @@ -213,7 +213,7 @@ static inline void sam_selectmosc(void) ****************************************************************************/ #if defined(NEED_PLLSETUP) -static inline void sam_pllasetup(void) +static inline void __ramfunc__ sam_pllasetup(void) { uint32_t regval; @@ -243,7 +243,7 @@ static inline void sam_pllasetup(void) ****************************************************************************/ #if defined(NEED_PLLSETUP) -static inline void sam_plladivider(void) +static inline void __ramfunc__ sam_plladivider(void) { uint32_t regval; @@ -294,7 +294,7 @@ static inline void sam_plladivider(void) ****************************************************************************/ #if defined(NEED_PLLSETUP) -static inline void sam_mckprescaler(void) +static inline void __ramfunc__ sam_mckprescaler(void) { uint32_t regval; @@ -321,7 +321,7 @@ static inline void sam_mckprescaler(void) ****************************************************************************/ #if defined(NEED_PLLSETUP) -static inline void sam_mckdivider(void) +static inline void __ramfunc__ sam_mckdivider(void) { uint32_t regval; @@ -347,7 +347,7 @@ static inline void sam_mckdivider(void) ****************************************************************************/ #if defined(NEED_PLLSETUP) -static inline void sam_selectplla(void) +static inline void __ramfunc__ sam_selectplla(void) { uint32_t regval;