From 9f6887fdd7c0abe03144f29d9585ee71c645c8dc Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 6 Jan 2009 09:32:35 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@588 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chsys.c | 2 +- src/include/sys.h | 2 +- src/templates/chcore.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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)) /** -- cgit v1.2.3