projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CM3: allow to define function in RAM by the RAM_FUNC macro
[bertos.git]
/
bertos
/
cpu
/
attr.h
diff --git
a/bertos/cpu/attr.h
b/bertos/cpu/attr.h
index c8090f955c021828db2cf242149bcd64b9b82e84..7374534185ba18414a292dcba046c3a443cd3ac8 100644
(file)
--- 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 */
#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)
#elif CPU_PPC
#define CPU_REG_BITS (CPU_PPC32 ? 32 : 64)