diff --git a/src/core/libraries/kernel/threads/pthread.cpp b/src/core/libraries/kernel/threads/pthread.cpp index 2858375b1..eca81c6c0 100644 --- a/src/core/libraries/kernel/threads/pthread.cpp +++ b/src/core/libraries/kernel/threads/pthread.cpp @@ -208,7 +208,7 @@ static void RunThread(void* arg) { /* Run the current thread's start routine with argument: */ auto* const stack = - (void*)((size_t)curthread->attr.stackaddr_attr + curthread->attr.stacksize_attr); + (void*)(((size_t)curthread->attr.stackaddr_attr + curthread->attr.stacksize_attr) & (~15)); void* ret = _runOnAnotherStack(curthread->arg, (void*)curthread->start_routine, stack); /* Remove thread from tracking */