diff options
author | inmarket <inmarket@ugfx.org> | 2017-01-09 10:24:49 +1000 |
---|---|---|
committer | inmarket <inmarket@ugfx.org> | 2017-01-09 10:24:49 +1000 |
commit | 9216504ce3f825f59494facac637ded42f1cbe04 (patch) | |
tree | f27ed9ccc5fd0a5825a0d00699d2814526375ff3 /src/gos/gos_freertos.h | |
parent | def8fd488fd62c96e42c163fc25ba735a359459e (diff) | |
download | uGFX-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_freertos.h')
-rw-r--r-- | src/gos/gos_freertos.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gos/gos_freertos.h b/src/gos/gos_freertos.h index 9b3d1023..92b48024 100644 --- a/src/gos/gos_freertos.h +++ b/src/gos/gos_freertos.h @@ -60,7 +60,7 @@ typedef portBASE_TYPE threadpriority_t; #define HIGH_PRIORITY configMAX_PRIORITIES-1 /* FreeRTOS will allocate the stack when creating the thread, so pass the size instead of a working area */ -#define DECLARE_THREAD_STACK(name, sz) size_t *name = (size_t *)sz +#define DECLARE_THREAD_STACK(name, sz) size_t *name = (size_t *)(sz) #define DECLARE_THREAD_FUNCTION(fnName, param) threadreturn_t fnName(void *param) #define THREAD_RETURN(retval) |