Searched refs:stack_init (Results 1 – 2 of 2) sorted by relevance
22 struct arch_esf *stack_init; in arch_new_thread() local25 stack_init = (struct arch_esf *)Z_STACK_PTR_ALIGN( in arch_new_thread()30 stack_init->a0 = (unsigned long)entry; in arch_new_thread()31 stack_init->a1 = (unsigned long)p1; in arch_new_thread()32 stack_init->a2 = (unsigned long)p2; in arch_new_thread()33 stack_init->a3 = (unsigned long)p3; in arch_new_thread()35 stack_init->status = CP0_STATUS_DEF_RESTORE in arch_new_thread()38 stack_init->epc = (unsigned long)z_thread_entry; in arch_new_thread()40 thread->callee_saved.sp = (unsigned long)stack_init; in arch_new_thread()
26 struct arch_esf *stack_init; in arch_new_thread() local33 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()[all …]