diff --git a/arch/posix/core/thread.c b/arch/posix/core/thread.c index 349a51ba3a2..e99f6365109 100644 --- a/arch/posix/core/thread.c +++ b/arch/posix/core/thread.c @@ -75,7 +75,7 @@ void z_new_thread(struct k_thread *thread, k_thread_stack_t *stack, thread_status->aborted = 0; #endif - thread->callee_saved.thread_status = (u32_t)thread_status; + thread->callee_saved.thread_status = thread_status; posix_new_thread(thread_status); } diff --git a/arch/posix/include/kernel_arch_thread.h b/arch/posix/include/kernel_arch_thread.h index 6611df024fb..f4ba25fd5d1 100644 --- a/arch/posix/include/kernel_arch_thread.h +++ b/arch/posix/include/kernel_arch_thread.h @@ -30,11 +30,8 @@ struct _callee_saved { /* Return value of z_swap() */ u32_t retval; - /* - * Thread status pointer - * (We need to compile as 32bit binaries in POSIX) - */ - u32_t thread_status; + /* Thread status pointer */ + void *thread_status; };