Lines Matching refs:tf
145 struct trapframe *tf;
150 tf = td->td_frame;
156 tf->tf_scratch.gr10 = error;
158 tf->tf_scratch.gr8 = td->td_retval[0];
159 tf->tf_scratch.gr9 = td->td_retval[1];
167 tf->tf_scratch.gr8 = error;
175 struct trapframe *tf;
179 tf = td->td_frame;
180 KASSERT(tf != NULL, ("foo"));
181 bcopy(td0->td_frame, tf, sizeof(*tf));
182 tf->tf_length = sizeof(struct trapframe);
183 tf->tf_flags = FRAME_SYSCALL;
184 tf->tf_special.ndirty = 0;
185 tf->tf_special.bspstore &= ~0x1ffUL;
186 tf->tf_scratch.gr8 = 0;
187 tf->tf_scratch.gr9 = 1;
188 tf->tf_scratch.gr10 = 0;
196 pcb->pcb_special.sp = (uintptr_t)tf - 16;
210 struct trapframe *tf;
213 tf = td->td_frame;
214 ndirty = tf->tf_special.ndirty + (tf->tf_special.bspstore & 0x1ffUL);
222 bzero(&tf->tf_special, sizeof(tf->tf_special));
223 tf->tf_special.iip = fuword(&fd->func);
224 tf->tf_special.gp = fuword(&fd->gp);
225 tf->tf_special.sp = (sp + stack->ss_size - 16) & ~15;
226 tf->tf_special.rsc = 0xf;
227 tf->tf_special.fpsr = IA64_FPSR_DEFAULT;
228 tf->tf_special.psr = IA64_PSR_IC | IA64_PSR_I | IA64_PSR_IT |
232 if (tf->tf_flags & FRAME_SYSCALL) {
233 tf->tf_special.cfm = (3UL<<62) | (1UL<<7) | 1UL;
234 tf->tf_special.bspstore = sp + 8;
237 tf->tf_special.cfm = (1UL<<63) | (1UL<<7) | 1UL;
238 tf->tf_special.bspstore = sp;
239 tf->tf_special.ndirty = 8;
243 tf->tf_special.ndirty += 8;