aboutsummaryrefslogtreecommitdiffstats
path: root/ports/AVR
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 /ports/AVR
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 'ports/AVR')
-rw-r--r--ports/AVR/chcore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/AVR/chcore.h b/ports/AVR/chcore.h
index 44f7b3506..187a8463c 100644
--- a/ports/AVR/chcore.h
+++ b/ports/AVR/chcore.h
@@ -153,7 +153,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.