arch: POSIX: Do not assume 32bit pointers

Correct the storage type of the thread status pointer
not assuming 32bit pointer and integer size

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
Alberto Escolar Piedras 2019-07-12 09:38:50 +02:00 committed by Alberto Escolar
commit 81503a2087
2 changed files with 3 additions and 6 deletions

View file

@ -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);
}