From 9216504ce3f825f59494facac637ded42f1cbe04 Mon Sep 17 00:00:00 2001 From: inmarket Date: Mon, 9 Jan 2017 10:24:49 +1000 Subject: Ensure stack size produces an aligned stack on platforms where it matters --- src/gos/gos.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gos/gos.h') 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]; -- cgit v1.2.3