aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/templates
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-05-26 10:15:33 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-05-26 10:15:33 +0000
commit9ffa6324d43fc1e8fd5333a7d8bc517df5e1da42 (patch)
treed116275944383967725db68e580c0dd929b885f0 /os/kernel/templates
parent1a9115dff31fb841a19bfc204ac6054e0f3b7a36 (diff)
downloadChibiOS-9ffa6324d43fc1e8fd5333a7d8bc517df5e1da42.tar.gz
ChibiOS-9ffa6324d43fc1e8fd5333a7d8bc517df5e1da42.tar.bz2
ChibiOS-9ffa6324d43fc1e8fd5333a7d8bc517df5e1da42.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1958 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/templates')
-rw-r--r--os/kernel/templates/chcore.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/os/kernel/templates/chcore.h b/os/kernel/templates/chcore.h
index bd5d824b6..f7e2e417c 100644
--- a/os/kernel/templates/chcore.h
+++ b/os/kernel/templates/chcore.h
@@ -80,7 +80,7 @@ struct context {
* @details This code usually setup the context switching frame represented
* by an @p intctx structure.
*/
-#define SETUP_CONTEXT(workspace, wsize, pf, arg) { \
+#define SETUP_CONTEXT(workspace, wsize, pf, arg) { \
}
/**
@@ -113,9 +113,9 @@ struct context {
/**
* @brief Computes the thread working area global size.
*/
-#define THD_WA_SIZE(n) STACK_ALIGN(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))
/**
@@ -123,7 +123,7 @@ struct context {
* @details This macro is used to allocate a static thread working area
* aligned as both position and size.
*/
-#define WORKING_AREA(s, n) stkalign_t s[THD_WA_SIZE(n) / sizeof(stkalign_t)];
+#define WORKING_AREA(s, n) stkalign_t s[THD_WA_SIZE(n) / sizeof(stkalign_t)]
/**
* @brief IRQ prologue code.