Lines Matching refs:uc
61 static void fill_ucontext (ucontext_t *uc, const struct sigcontext *sc) in fill_ucontext() argument
63 uc->uc_flags = 0; in fill_ucontext()
64 uc->uc_link = NULL; in fill_ucontext()
65 uc->uc_sigmask = sc->sc_mask; in fill_ucontext()
66 uc->uc_stack.ss_sp = (__ptr_t) sc->sc_uesp; in fill_ucontext()
67 uc->uc_stack.ss_size = 0; in fill_ucontext()
68 uc->uc_stack.ss_flags = 0; in fill_ucontext()
71 memcpy (&uc->uc_mcontext.gregs[REG_GS], &sc->sc_gs, in fill_ucontext()
73 uc->uc_mcontext.gregs[REG_TRAPNO] = 0; in fill_ucontext()
74 uc->uc_mcontext.gregs[REG_ERR] = 0; in fill_ucontext()
75 memcpy (&uc->uc_mcontext.gregs[REG_EIP], &sc->sc_eip, in fill_ucontext()
79 memset (&uc->uc_mcontext.fpregs, 0, sizeof (fpregset_t)); in fill_ucontext()