projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AT91SAM7: Increase flash access speed.
[bertos.git]
/
bertos
/
cpu
/
frame.h
diff --git
a/bertos/cpu/frame.h
b/bertos/cpu/frame.h
index 9fd55b0b4b006eb94f3cc503c10017fe7a7ff991..e8d0f898973458fe214c4ad1e5272b86ccda1ad1 100644
(file)
--- a/
bertos/cpu/frame.h
+++ b/
bertos/cpu/frame.h
@@
-69,7
+69,7
@@
#elif CPU_CM3
#elif CPU_CM3
- #define CPU_SAVED_REGS_CNT
fixme
+ #define CPU_SAVED_REGS_CNT
8
#define CPU_STACK_GROWS_UPWARD 0
#define CPU_SP_ON_EMPTY_SLOT 0
#define CPU_STACK_GROWS_UPWARD 0
#define CPU_SP_ON_EMPTY_SLOT 0
@@
-155,6
+155,15
@@
CPU_PUSH_WORD((sp), 0x100); \
} while (0);
CPU_PUSH_WORD((sp), 0x100); \
} while (0);
+#elif CPU_CM3
+
+
+ #define CPU_PUSH_CALL_FRAME(sp, func) \
+ do { \
+ CPU_PUSH_WORD((sp), 0x01000000); /* xPSR */ \
+ CPU_PUSH_WORD((sp), (cpu_stack_t)(func)); /* lr */ \
+ } while (0);
+
#elif CPU_AVR
/*
* On AVR, addresses are pushed into the stack as little-endian, while
#elif CPU_AVR
/*
* On AVR, addresses are pushed into the stack as little-endian, while