Lines Matching refs:uc
40 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
42 memcpy(&uc->uc_mcontext.mc_fs, &r->r_fs, 18*4); in pt_reg_to_ucontext()
43 uc->uc_mcontext.mc_gs = r->r_gs; in pt_reg_to_ucontext()
47 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
49 memcpy(&r->r_fs, &uc->uc_mcontext.mc_fs, 18*4); in pt_ucontext_to_reg()
50 r->r_gs = uc->uc_mcontext.mc_gs; in pt_ucontext_to_reg()
54 pt_fpreg_to_ucontext(const struct fpreg* r, ucontext_t *uc) in pt_fpreg_to_ucontext() argument
57 memcpy(&uc->uc_mcontext.mc_fpstate, r, in pt_fpreg_to_ucontext()
61 struct savexmm *sx = (struct savexmm *)&uc->uc_mcontext.mc_fpstate; in pt_fpreg_to_ucontext()
69 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() argument
72 memcpy(r, &uc->uc_mcontext.mc_fpstate, sizeof(struct save87)); in pt_ucontext_to_fpreg()
75 const struct savexmm *sx = (const struct savexmm *)&uc->uc_mcontext.mc_fpstate; in pt_ucontext_to_fpreg()
83 pt_fxsave_to_ucontext(const char* r, ucontext_t *uc) in pt_fxsave_to_ucontext() argument
86 memcpy(&uc->uc_mcontext.mc_fpstate, r, sizeof(struct savexmm)); in pt_fxsave_to_ucontext()
90 pt_ucontext_to_fxsave(const ucontext_t *uc, char *r) in pt_ucontext_to_fxsave() argument
93 memcpy(r, &uc->uc_mcontext.mc_fpstate, sizeof(struct savexmm)); in pt_ucontext_to_fxsave()
99 ucontext_t uc; in pt_md_init() local
101 getcontext(&uc); in pt_md_init()
102 if (uc.uc_mcontext.mc_fpformat == _MC_FPFMT_XMM) in pt_md_init()