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_x_threads.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_x_threads.h')
-rw-r--r-- | src/gos/gos_x_threads.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gos/gos_x_threads.h b/src/gos/gos_x_threads.h index 585585c5..05a08cc2 100644 --- a/src/gos/gos_x_threads.h +++ b/src/gos/gos_x_threads.h @@ -31,7 +31,7 @@ typedef int threadreturn_t; typedef int threadpriority_t; #define DECLARE_THREAD_FUNCTION(fnName, param) threadreturn_t fnName(void *param) -#define DECLARE_THREAD_STACK(name, sz) uint8_t name[sz]; +#define DECLARE_THREAD_STACK(name, sz) uint8_t name[(sz) & ~3]; #define THREAD_RETURN(retval) return retval #define TIME_IMMEDIATE 0 |