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; thread_status->aborted = 0;
#endif #endif
thread->callee_saved.thread_status = (u32_t)thread_status; thread->callee_saved.thread_status = thread_status;
posix_new_thread(thread_status); posix_new_thread(thread_status);
} }

View file

@ -30,11 +30,8 @@ struct _callee_saved {
/* Return value of z_swap() */ /* Return value of z_swap() */
u32_t retval; u32_t retval;
/* /* Thread status pointer */
* Thread status pointer void *thread_status;
* (We need to compile as 32bit binaries in POSIX)
*/
u32_t thread_status;
}; };