Lines Matching refs:tf

100 	struct trapframe *tf = td->td_frame;
121 if (tf->tf_eflags & PSL_VM) {
122 r[SVR4_X86_GS] = tf->tf_vm86_gs;
123 r[SVR4_X86_FS] = tf->tf_vm86_fs;
124 r[SVR4_X86_ES] = tf->tf_vm86_es;
125 r[SVR4_X86_DS] = tf->tf_vm86_ds;
135 r[SVR4_X86_FS] = tf->tf_fs;
137 r[SVR4_X86_ES] = tf->tf_es;
138 r[SVR4_X86_DS] = tf->tf_ds;
139 r[SVR4_X86_EFL] = tf->tf_eflags;
141 r[SVR4_X86_EDI] = tf->tf_edi;
142 r[SVR4_X86_ESI] = tf->tf_esi;
143 r[SVR4_X86_EBP] = tf->tf_ebp;
144 r[SVR4_X86_ESP] = tf->tf_esp;
145 r[SVR4_X86_EBX] = tf->tf_ebx;
146 r[SVR4_X86_EDX] = tf->tf_edx;
147 r[SVR4_X86_ECX] = tf->tf_ecx;
148 r[SVR4_X86_EAX] = tf->tf_eax;
149 r[SVR4_X86_TRAPNO] = tf->tf_trapno;
150 r[SVR4_X86_ERR] = tf->tf_err;
151 r[SVR4_X86_EIP] = tf->tf_eip;
152 r[SVR4_X86_CS] = tf->tf_cs;
154 r[SVR4_X86_SS] = tf->tf_ss;
162 s->ss_sp = (void *)rounddown2((u_long)tf->tf_esp, 16384);
198 register struct trapframe *tf;
226 tf = td->td_frame;
234 tf->tf_vm86_gs = r[SVR4_X86_GS];
235 tf->tf_vm86_fs = r[SVR4_X86_FS];
236 tf->tf_vm86_es = r[SVR4_X86_ES];
237 tf->tf_vm86_ds = r[SVR4_X86_DS];
248 if (((r[SVR4_X86_EFL] ^ tf->tf_eflags) & PSL_USERSTATIC) != 0 ||
258 tf->tf_fs = r[SVR4_X86_FS];
260 tf->tf_es = r[SVR4_X86_ES];
261 tf->tf_ds = r[SVR4_X86_DS];
262 tf->tf_eflags = r[SVR4_X86_EFL];
264 tf->tf_edi = r[SVR4_X86_EDI];
265 tf->tf_esi = r[SVR4_X86_ESI];
266 tf->tf_ebp = r[SVR4_X86_EBP];
267 tf->tf_ebx = r[SVR4_X86_EBX];
268 tf->tf_edx = r[SVR4_X86_EDX];
269 tf->tf_ecx = r[SVR4_X86_ECX];
270 tf->tf_eax = r[SVR4_X86_EAX];
271 tf->tf_trapno = r[SVR4_X86_TRAPNO];
272 tf->tf_err = r[SVR4_X86_ERR];
273 tf->tf_eip = r[SVR4_X86_EIP];
274 tf->tf_cs = r[SVR4_X86_CS];
275 tf->tf_ss = r[SVR4_X86_SS];
276 tf->tf_esp = r[SVR4_X86_ESP];
420 register struct trapframe *tf;
436 tf = td->td_frame;
437 oonstack = sigonstack(tf->tf_esp);
448 fp = (struct svr4_sigframe *)tf->tf_esp - 1;
467 svr4_getsiginfo(&frame.sf_si, sig, code, (caddr_t) tf->tf_eip);
493 tf->tf_es = GSEL(GUSERLDT_SEL, SEL_UPL);
494 tf->tf_ds = GSEL(GUSERLDT_SEL, SEL_UPL);
495 tf->tf_eip = (int)(((char *)PS_STRINGS) -
497 tf->tf_cs = GSEL(GUSERLDT_SEL, SEL_UPL);
499 tf->tf_eflags &= ~(PSL_T|PSL_VM|PSL_AC|PSL_D);
500 tf->tf_esp = (int)fp;
501 tf->tf_ss = GSEL(GUSERLDT_SEL, SEL_UPL);
503 tf->tf_esp = (int)fp;
504 tf->tf_eip = (int)(((char *)PS_STRINGS) - *(p->p_sysent->sv_szsigcode));
505 tf->tf_eflags &= ~(PSL_T | PSL_D);
506 tf->tf_cs = _ucodesel;
507 tf->tf_ds = _udatasel;
508 tf->tf_es = _udatasel;
509 tf->tf_fs = _udatasel;
511 tf->tf_ss = _udatasel;