diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-06 09:32:35 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-06 09:32:35 +0000 |
commit | 9f6887fdd7c0abe03144f29d9585ee71c645c8dc (patch) | |
tree | ce31ae2127becc36ddd64b6577e8e83a06f49405 /src | |
parent | fee14cb4ce565ed6c47c675a14cfb9480cb52886 (diff) | |
download | ChibiOS-9f6887fdd7c0abe03144f29d9585ee71c645c8dc.tar.gz ChibiOS-9f6887fdd7c0abe03144f29d9585ee71c645c8dc.tar.bz2 ChibiOS-9f6887fdd7c0abe03144f29d9585ee71c645c8dc.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@588 35acf78f-673a-0410-8e92-d51de3d6d3f4
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))
/**
|