Lines Matching refs:tf
87 struct trapframe *tf = l->l_md.md_regs; in freebsd_sendsig() local
101 frame.sf_sc.sc_gs = tf->tf_gs; in freebsd_sendsig()
102 frame.sf_sc.sc_fs = tf->tf_fs; in freebsd_sendsig()
103 frame.sf_sc.sc_es = tf->tf_es; in freebsd_sendsig()
104 frame.sf_sc.sc_ds = tf->tf_ds; in freebsd_sendsig()
105 frame.sf_sc.sc_efl = tf->tf_eflags; in freebsd_sendsig()
107 frame.sf_sc.sc_edi = tf->tf_edi; in freebsd_sendsig()
108 frame.sf_sc.sc_esi = tf->tf_esi; in freebsd_sendsig()
109 frame.sf_sc.sc_ebp = tf->tf_ebp; in freebsd_sendsig()
111 frame.sf_sc.sc_ebx = tf->tf_ebx; in freebsd_sendsig()
112 frame.sf_sc.sc_edx = tf->tf_edx; in freebsd_sendsig()
113 frame.sf_sc.sc_ecx = tf->tf_ecx; in freebsd_sendsig()
114 frame.sf_sc.sc_eax = tf->tf_eax; in freebsd_sendsig()
115 frame.sf_sc.sc_eip = tf->tf_eip; in freebsd_sendsig()
116 frame.sf_sc.sc_cs = tf->tf_cs; in freebsd_sendsig()
117 frame.sf_sc.sc_esp = tf->tf_esp; in freebsd_sendsig()
118 frame.sf_sc.sc_ss = tf->tf_ss; in freebsd_sendsig()
167 struct trapframe *tf; in freebsd_sys_sigreturn() local
180 tf = l->l_md.md_regs; in freebsd_sys_sigreturn()
188 if (((context.sc_efl ^ tf->tf_eflags) & PSL_USERSTATIC) != 0 || in freebsd_sys_sigreturn()
192 tf->tf_gs = context.sc_gs; in freebsd_sys_sigreturn()
193 tf->tf_fs = context.sc_fs; in freebsd_sys_sigreturn()
194 tf->tf_es = context.sc_es; in freebsd_sys_sigreturn()
195 tf->tf_ds = context.sc_ds; in freebsd_sys_sigreturn()
196 tf->tf_eflags &= ~PSL_USER; in freebsd_sys_sigreturn()
197 tf->tf_eflags |= context.sc_efl & PSL_USER; in freebsd_sys_sigreturn()
199 tf->tf_edi = context.sc_edi; in freebsd_sys_sigreturn()
200 tf->tf_esi = context.sc_esi; in freebsd_sys_sigreturn()
201 tf->tf_ebp = context.sc_ebp; in freebsd_sys_sigreturn()
203 tf->tf_ebx = context.sc_ebx; in freebsd_sys_sigreturn()
204 tf->tf_edx = context.sc_edx; in freebsd_sys_sigreturn()
205 tf->tf_ecx = context.sc_ecx; in freebsd_sys_sigreturn()
206 tf->tf_eax = context.sc_eax; in freebsd_sys_sigreturn()
207 tf->tf_eip = context.sc_eip; in freebsd_sys_sigreturn()
208 tf->tf_cs = context.sc_cs; in freebsd_sys_sigreturn()
209 tf->tf_esp = context.sc_esp; in freebsd_sys_sigreturn()
210 tf->tf_ss = context.sc_ss; in freebsd_sys_sigreturn()