aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-02-20 20:21:37 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-02-20 20:21:37 +0000
commit605d283b6aced9dd69f32b6d6ac0e9f0d25cd10e (patch)
tree9c79569815668dc7b64fbaeca2af7524f714ac76 /src
parentdaabc2b079b17a41ca2f1a2a6423373f811402ba (diff)
downloadChibiOS-605d283b6aced9dd69f32b6d6ac0e9f0d25cd10e.tar.gz
ChibiOS-605d283b6aced9dd69f32b6d6ac0e9f0d25cd10e.tar.bz2
ChibiOS-605d283b6aced9dd69f32b6d6ac0e9f0d25cd10e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@792 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src')
-rw-r--r--src/templates/chcore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates/chcore.h b/src/templates/chcore.h
index fa0edd034..78fa3abac 100644
--- a/src/templates/chcore.h
+++ b/src/templates/chcore.h
@@ -96,7 +96,7 @@ struct context {
/**
* Enforces a correct alignment for a stack area size value.
*/
-#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
+#define STACK_ALIGN(n) ((((n) - 1) | (sizeof(stkalign_t) - 1)) + 1)
/**
* Computes the thread working area global size.