aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos.h
diff options
context:
space:
mode:
authorinmarket <inmarket@ugfx.org>2017-01-09 10:24:49 +1000
committerinmarket <inmarket@ugfx.org>2017-01-09 10:24:49 +1000
commit9216504ce3f825f59494facac637ded42f1cbe04 (patch)
treef27ed9ccc5fd0a5825a0d00699d2814526375ff3 /src/gos/gos.h
parentdef8fd488fd62c96e42c163fc25ba735a359459e (diff)
downloaduGFX-9216504ce3f825f59494facac637ded42f1cbe04.tar.gz
uGFX-9216504ce3f825f59494facac637ded42f1cbe04.tar.bz2
uGFX-9216504ce3f825f59494facac637ded42f1cbe04.zip
Ensure stack size produces an aligned stack on platforms where it matters
Diffstat (limited to 'src/gos/gos.h')
-rw-r--r--src/gos/gos.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gos/gos.h b/src/gos/gos.h
index 09b278bc..ddca0d94 100644
--- a/src/gos/gos.h
+++ b/src/gos/gos.h
@@ -65,7 +65,11 @@
* @brief Declare a thread stack
*
* @param[in] name The name of the stack
- * @param[in] sz The size of the stack
+ * @param[in] sz The size of the stack in bytes
+ *
+ * @note The size provided is just a suggestion to the required stack size.
+ * Many platforms will round the size to ensure correct stack alignment.
+ * Other platforms may entirely ignore the suggested size.
*/
#define DECLARE_THREAD_STACK(name, sz) uint8_t name[sz];