Lines Matching refs:frame
43 _xtensa_irq_stack_frame_a11_t *frame; in init_stack() local
67 const int bsasz = sizeof(*frame) - 16; in init_stack()
69 frame = (void *)(((char *) stack_top) - bsasz); in init_stack()
71 (void)memset(frame, 0, bsasz); in init_stack()
73 frame->bsa.ps = PS_WOE | PS_UM | PS_CALLINC(1); in init_stack()
88 frame->bsa.pc = (uintptr_t)arch_user_mode_enter; in init_stack()
90 frame->bsa.pc = (uintptr_t)z_thread_entry; in init_stack()
93 frame->bsa.pc = (uintptr_t)z_thread_entry; in init_stack()
98 frame->bsa.threadptr = thread->tls; in init_stack()
100 frame->bsa.threadptr = (uintptr_t)((thread->base.user_options & K_USER) ? thread : NULL); in init_stack()
109 frame->a7 = (uintptr_t)arg1; /* a7 */ in init_stack()
110 frame->a6 = (uintptr_t)entry; /* a6 */ in init_stack()
111 frame->a5 = 0; /* a5 */ in init_stack()
112 frame->a4 = 0; /* a4 */ in init_stack()
114 frame->a11 = 0; /* a11 */ in init_stack()
115 frame->a10 = 0; /* a10 */ in init_stack()
116 frame->a9 = (uintptr_t)arg3; /* a9 */ in init_stack()
117 frame->a8 = (uintptr_t)arg2; /* a8 */ in init_stack()
122 frame->ptr_to_bsa = (void *)&frame->bsa; in init_stack()
123 ret = &frame->ptr_to_bsa; in init_stack()