CM3: allow to define function in RAM by the RAM_FUNC macro
[bertos.git] / bertos / cpu / attr.h
index c8090f955c021828db2cf242149bcd64b9b82e84..7374534185ba18414a292dcba046c3a443cd3ac8 100644 (file)
        #define PAUSE       asm volatile ("wfi" ::: "memory")
        #define BREAKPOINT  /* asm("bkpt 0") DOES NOT WORK */
 
+       /*
+        * Function attribute to move it into ram memory.
+        */
+       #define RAM_FUNC __attribute__((section(".data")))
+
 #elif CPU_PPC
 
        #define CPU_REG_BITS           (CPU_PPC32 ? 32 : 64)