projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add timer strobe macros default.
[bertos.git]
/
bertos
/
cpu
/
frame.h
diff --git
a/bertos/cpu/frame.h
b/bertos/cpu/frame.h
index c96351566f156c71d93de7fe50c803403ebc2966..1a80fa1da21fa2faf415391212835573a99608ea 100644
(file)
--- a/
bertos/cpu/frame.h
+++ b/
bertos/cpu/frame.h
@@
-58,7
+58,7
@@
#elif CPU_ARM
#elif CPU_ARM
- #define CPU_SAVED_REGS_CNT
9
+ #define CPU_SAVED_REGS_CNT
10
#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
@@
-74,7
+74,14
@@
* - ARM state.
* - CPU in Supervisor Mode (SVC).
*/
* - ARM state.
* - CPU in Supervisor Mode (SVC).
*/
- #define CPU_REG_INIT_VALUE(reg) (reg == (CPU_SAVED_REGS_CNT - 1) ? 0x13 : 0)
+ #define CPU_REG_INIT_VALUE(reg) \
+ ({ int a = 0; \
+ if(reg == 0) \
+ a = (int)proc_exit; \
+ else if(reg == (CPU_SAVED_REGS_CNT - 1)) \
+ a = 0x13; \
+ a; \
+ })
#elif CPU_PPC
#elif CPU_PPC