mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-20 22:42:40 +08:00
[libc] fix 64bit issue for pthreads
This commit is contained in:
2
components/libc/pthreads/pthread.c
Executable file → Normal file
2
components/libc/pthreads/pthread.c
Executable file → Normal file
@@ -277,7 +277,7 @@ int pthread_create(pthread_t *pid,
|
|||||||
|
|
||||||
/* set pthread cleanup function and ptd data */
|
/* set pthread cleanup function and ptd data */
|
||||||
ptd->tid->cleanup = _pthread_cleanup;
|
ptd->tid->cleanup = _pthread_cleanup;
|
||||||
ptd->tid->user_data = (rt_uint32_t)ptd;
|
ptd->tid->user_data = (rt_ubase_t)ptd;
|
||||||
|
|
||||||
/* start thread */
|
/* start thread */
|
||||||
if (rt_thread_startup(ptd->tid) == RT_EOK)
|
if (rt_thread_startup(ptd->tid) == RT_EOK)
|
||||||
|
@@ -623,7 +623,7 @@ struct rt_thread
|
|||||||
void *lwp;
|
void *lwp;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rt_uint32_t user_data; /**< private user data beyond this thread */
|
rt_ubase_t user_data; /**< private user data beyond this thread */
|
||||||
};
|
};
|
||||||
typedef struct rt_thread *rt_thread_t;
|
typedef struct rt_thread *rt_thread_t;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user