Lines Matching refs:stack_init
26 struct arch_esf *stack_init; in arch_new_thread() local
33 stack_init = (struct arch_esf *)Z_STACK_PTR_ALIGN( in arch_new_thread()
38 stack_init->a0 = (unsigned long)entry; in arch_new_thread()
39 stack_init->a1 = (unsigned long)p1; in arch_new_thread()
40 stack_init->a2 = (unsigned long)p2; in arch_new_thread()
41 stack_init->a3 = (unsigned long)p3; in arch_new_thread()
66 stack_init->mstatus = MSTATUS_DEF_RESTORE; in arch_new_thread()
73 stack_init->mstatus |= MSTATUS_FS_INIT; in arch_new_thread()
86 stack_init->mepc = (unsigned long)k_thread_user_mode_enter; in arch_new_thread()
90 stack_init->mepc = (unsigned long)z_thread_entry; in arch_new_thread()
96 stack_init->mstatus |= MSTATUS_MPRV; in arch_new_thread()
106 stack_init->soc_context = soc_esf_init; in arch_new_thread()
109 thread->callee_saved.sp = (unsigned long)stack_init; in arch_new_thread()