The Cooja thread stack must be 16 byte aligned on 64 bit systems.
struct cooja_mtarch_thread {
unsigned long sp; /* Note: stack pointer must be first var in struct! */
unsigned long stack[COOJA_MTARCH_STACKSIZE];
-};
+} __attribute__ ((aligned (16)));
struct cooja_mt_thread;
