mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
arch: Initialize the idle thread stack info directly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
29c6f11239
commit
efee1c6ded
@@ -73,8 +73,10 @@ void up_initial_state(struct tcb_s *tcb)
|
||||
|
||||
if (tcb->pid == 0)
|
||||
{
|
||||
up_use_stack(tcb, (void *)(g_idle_topstack -
|
||||
CONFIG_IDLETHREAD_STACKSIZE), CONFIG_IDLETHREAD_STACKSIZE);
|
||||
tcb->stack_alloc_ptr = (void *)(g_idle_topstack -
|
||||
CONFIG_IDLETHREAD_STACKSIZE);
|
||||
tcb->adj_stack_ptr = (void *)g_idle_topstack;
|
||||
tcb->adj_stack_size = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
}
|
||||
|
||||
/* Initialize the initial exception register context structure */
|
||||
|
||||
Reference in New Issue
Block a user