Home | History | Annotate | Download | only in i386

Lines Matching defs:context

62  * stack state from context left by sendsig (above).
64 * context left by sendsig. Check carefully to
78 struct sigcontext *scp, context;
82 * The trampoline code hands us the context.
87 if (copyin((void *)scp, &context, sizeof(*scp)) != 0)
90 /* Restore register context. */
99 if (((context.sc_eflags ^ tf->tf_eflags) & PSL_USERSTATIC) != 0 ||
100 !USERMODE(context.sc_cs))
103 tf->tf_gs = context.sc_gs;
104 tf->tf_fs = context.sc_fs;
105 tf->tf_es = context.sc_es;
106 tf->tf_ds = context.sc_ds;
108 tf->tf_eflags |= context.sc_eflags & PSL_USER;
110 tf->tf_edi = context.sc_edi;
111 tf->tf_esi = context.sc_esi;
112 tf->tf_ebp = context.sc_ebp;
113 tf->tf_ebx = context.sc_ebx;
114 tf->tf_edx = context.sc_edx;
115 tf->tf_ecx = context.sc_ecx;
116 tf->tf_eax = context.sc_eax;
117 tf->tf_eip = context.sc_eip;
118 tf->tf_cs = context.sc_cs;
119 tf->tf_esp = context.sc_esp;
120 tf->tf_ss = context.sc_ss;
124 if (context.sc_onstack & SS_ONSTACK)
129 (void) sigprocmask1(l, SIG_SETMASK, &context.sc_mask, 0);
184 /* Save register context. */