Skip to content
Permalink
Browse files

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>
  • Loading branch information...
aescolar committed Jul 12, 2019
1 parent 748413c commit 81503a208715db877878b74bcde3b2e91d98c512
Showing with 3 additions and 6 deletions.
  1. +1 −1 arch/posix/core/thread.c
  2. +2 −5 arch/posix/include/kernel_arch_thread.h
@@ -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);
}
@@ -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;
};


0 comments on commit 81503a2

Please sign in to comment.
You can’t perform that action at this time.