Lines Matching defs:context
100 /* Save context. */
152 * stack state from context left by sendsig (above).
154 * context left by sendsig. Check carefully to
166 struct freebsd_sigcontext *scp, context;
171 * The trampoline code hands us the context.
176 if (copyin((void *)scp, &context, sizeof(*scp)) != 0)
179 /* Restore register context. */
188 if (((context.sc_efl ^ tf->tf_eflags) & PSL_USERSTATIC) != 0 ||
189 !USERMODE(context.sc_cs))
192 tf->tf_gs = context.sc_gs;
193 tf->tf_fs = context.sc_fs;
194 tf->tf_es = context.sc_es;
195 tf->tf_ds = context.sc_ds;
197 tf->tf_eflags |= context.sc_efl & PSL_USER;
199 tf->tf_edi = context.sc_edi;
200 tf->tf_esi = context.sc_esi;
201 tf->tf_ebp = context.sc_ebp;
202 /* FreeBSD's context.sc_isp is useless. (`popal' ignores it.) */
203 tf->tf_ebx = context.sc_ebx;
204 tf->tf_edx = context.sc_edx;
205 tf->tf_ecx = context.sc_ecx;
206 tf->tf_eax = context.sc_eax;
207 tf->tf_eip = context.sc_eip;
208 tf->tf_cs = context.sc_cs;
209 tf->tf_esp = context.sc_esp;
210 tf->tf_ss = context.sc_ss;
214 if (context.sc_onstack & SS_ONSTACK)
220 mask = context.sc_mask;