commit
c8b546bb78
|
@ -87,7 +87,7 @@ enum
|
|||
struct pthread_attr
|
||||
{
|
||||
void* stack_base;
|
||||
rt_uint16_t stack_size; /* stack size of thread */
|
||||
rt_uint32_t stack_size; /* stack size of thread */
|
||||
|
||||
rt_uint8_t priority; /* priority of thread */
|
||||
rt_uint8_t detachstate; /* detach state */
|
||||
|
|
|
@ -496,7 +496,7 @@ struct rt_thread
|
|||
void *entry; /**< entry */
|
||||
void *parameter; /**< parameter */
|
||||
void *stack_addr; /**< stack address */
|
||||
rt_uint16_t stack_size; /**< stack size */
|
||||
rt_uint32_t stack_size; /**< stack size */
|
||||
|
||||
/* error code */
|
||||
rt_err_t error; /**< error code */
|
||||
|
|
|
@ -98,7 +98,7 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread,
|
|||
|
||||
/* stack init */
|
||||
thread->stack_addr = stack_start;
|
||||
thread->stack_size = (rt_uint16_t)stack_size;
|
||||
thread->stack_size = stack_size;
|
||||
|
||||
/* init thread stack */
|
||||
rt_memset(thread->stack_addr, '#', thread->stack_size);
|
||||
|
|
Loading…
Reference in New Issue