Home
last modified time | relevance | path

Searched refs:syscall_frame (Results 1 – 2 of 2) sorted by relevance

/components/lwp/arch/aarch64/cortex-a/
A Dlwp_arch.c104 struct rt_hw_exp_stack *syscall_frame; in arch_set_thread_context() local
111 syscall_frame = (void *)((long)new_thread_stack - sizeof(struct rt_hw_exp_stack)); in arch_set_thread_context()
112 memcpy(syscall_frame, ori_syscall, sizeof(*syscall_frame)); in arch_set_thread_context()
113 syscall_frame->sp_el0 = (long)user_stack; in arch_set_thread_context()
114 syscall_frame->x0 = 0; in arch_set_thread_context()
116 thread_frame = (void *)rt_hw_stack_init(exit, RT_NULL, (void *)syscall_frame, RT_NULL); in arch_set_thread_context()
/components/lwp/arch/risc-v/rv64/
A Dlwp_arch.c167 struct rt_hw_stack_frame *syscall_frame; in arch_set_thread_context() local
178 syscall_frame = (struct rt_hw_stack_frame *)stk; in arch_set_thread_context()
181 syscall_frame->user_sp_exc_stack = (rt_ubase_t)user_stack; in arch_set_thread_context()
184 syscall_frame->epc += 4; in arch_set_thread_context()
187 syscall_frame->a0 = 0; in arch_set_thread_context()
188 syscall_frame->a1 = 0; in arch_set_thread_context()
192 syscall_frame->tp = (rt_ubase_t)thread->thread_idr; in arch_set_thread_context()

Completed in 24 milliseconds