diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/chsys.c | 2 | ||||
-rw-r--r-- | src/include/sys.h | 2 | ||||
-rw-r--r-- | src/templates/chcore.h | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/chsys.c b/src/chsys.c index 0f5f7fa39..21fbe1048 100644 --- a/src/chsys.c +++ b/src/chsys.c @@ -71,7 +71,7 @@ void chSysInit(void) { * serve interrupts in its context while keeping the lowest energy saving * mode compatible with the system status. */ - chThdCreateStatic(idle_wa, sizeof(idle_thread_wa), IDLEPRIO, + chThdCreateStatic(idle_thread_wa, sizeof(idle_thread_wa), IDLEPRIO, (tfunc_t)idle_thread, NULL); } diff --git a/src/include/sys.h b/src/include/sys.h index 7cc94ce82..6c6b65704 100644 --- a/src/include/sys.h +++ b/src/include/sys.h @@ -153,7 +153,7 @@ */
#if defined(CH_OPTIMIZE_SPEED)
#define chSysLock() chSysLockInline()
-#define chSysUnlock chSysUnlockInline()
+#define chSysUnlock() chSysUnlockInline()
#endif /* defined(CH_OPTIMIZE_SPEED) */
#ifdef __cplusplus
diff --git a/src/templates/chcore.h b/src/templates/chcore.h index 4e0aaf16a..f94cb4b18 100644 --- a/src/templates/chcore.h +++ b/src/templates/chcore.h @@ -98,9 +98,9 @@ typedef struct { /**
* Computes the thread working area global size.
*/
-#define THD_WA_SIZE(n) StackAlign(sizeof(Thread) + \
- sizeof(struct intctx) + \
- sizeof(struct extctx) + \
+#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
+ sizeof(struct intctx) + \
+ sizeof(struct extctx) + \
(n) + (INT_REQUIRED_STACK))
/**
|