aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_ecos.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gos/gos_ecos.h')
-rw-r--r--src/gos/gos_ecos.h2
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)