Lines Matching refs:sc
49 struct sigcontext sc;
64 restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
72 /* restore the regs from &sc->regs (same as sc, since regs is first)
73 * (sc is already checked for VERIFY_READ since the sigframe was
77 if (__copy_from_user(regs, sc, sizeof(struct pt_regs)))
84 /* restore the old USP as it was before we stacked the sc etc.
89 err |= __get_user(old_usp, &sc->usp);
120 if (__get_user(set.sig[0], &frame->sc.oldmask)
128 if (restore_sigcontext(regs, &frame->sc))
178 static int setup_sigcontext(struct sigcontext __user *sc,
184 /* copy the regs. they are first in sc so we can use sc directly */
186 err |= __copy_to_user(sc, regs, sizeof(struct pt_regs));
195 err |= __put_user(mask, &sc->oldmask);
197 err |= __put_user(usp, &sc->usp);
237 err |= setup_sigcontext(&frame->sc, regs, set->sig[0]);