X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fattr.h;h=7374534185ba18414a292dcba046c3a443cd3ac8;hb=5c8dfe7f8e209f4fb19db7c73cc24af1982b12a2;hp=c8090f955c021828db2cf242149bcd64b9b82e84;hpb=111bf6c8f1d9ef14df24586fa67500fdc997163c;p=bertos.git diff --git a/bertos/cpu/attr.h b/bertos/cpu/attr.h index c8090f95..73745341 100644 --- a/bertos/cpu/attr.h +++ b/bertos/cpu/attr.h @@ -190,6 +190,11 @@ #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)