Lines Matching refs:tf
73 struct trapframe *tf; in cpu_fork() local
103 tf = (struct trapframe *)STACKALIGN((struct trapframe *)pcb2 - 1); in cpu_fork()
104 bcopy(td1->td_frame, tf, sizeof(*tf)); in cpu_fork()
105 tf->tf_x[0] = 0; in cpu_fork()
106 tf->tf_x[1] = 0; in cpu_fork()
107 tf->tf_spsr = td1->td_frame->tf_spsr & (PSR_M_32 | PSR_DAIF); in cpu_fork()
109 td2->td_frame = tf; in cpu_fork()
219 struct trapframe *tf = td->td_frame; in cpu_set_upcall() local
223 tf->tf_x[13] = STACKALIGN((uintptr_t)stack->ss_sp + in cpu_set_upcall()
226 tf->tf_spsr |= PSR_T; in cpu_set_upcall()
228 tf->tf_sp = STACKALIGN((uintptr_t)stack->ss_sp + in cpu_set_upcall()
230 tf->tf_elr = (register_t)entry; in cpu_set_upcall()
231 tf->tf_x[0] = (register_t)arg; in cpu_set_upcall()
232 tf->tf_x[29] = 0; in cpu_set_upcall()
233 tf->tf_lr = 0; in cpu_set_upcall()