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_ecos.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_ecos.h')
-rw-r--r-- | src/gos/gos_ecos.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gos/gos_ecos.h b/src/gos/gos_ecos.h index cd5678df..6aa55a3a 100644 --- a/src/gos/gos_ecos.h +++ b/src/gos/gos_ecos.h @@ -44,7 +44,7 @@ typedef cyg_handle_t gfxThreadHandle; #define NORMAL_PRIORITY (CYGNUM_KERNEL_SCHED_PRIORITIES/2) #define HIGH_PRIORITY 0 -#define DECLARE_THREAD_STACK(name, sz) struct { cyg_thread t; unsigned char stk[sz]; } name[1] +#define DECLARE_THREAD_STACK(name, sz) struct { cyg_thread t; unsigned char stk[(sz) & ~3]; } name[1] #define DECLARE_THREAD_FUNCTION(fnName, param) threadreturn_t fnName(cyg_addrword_t param) #define THREAD_RETURN(retval) |