Lines Matching refs:uc
42 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
44 memcpy(&uc->uc_mcontext.mc_fs, &r->r_fs, 18*4); in pt_reg_to_ucontext()
45 uc->uc_mcontext.mc_gs = r->r_gs; in pt_reg_to_ucontext()
49 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
51 memcpy(&r->r_fs, &uc->uc_mcontext.mc_fs, 18*4); in pt_ucontext_to_reg()
52 r->r_gs = uc->uc_mcontext.mc_gs; in pt_ucontext_to_reg()
56 pt_fpreg_to_ucontext(const struct fpreg* r, ucontext_t *uc) in pt_fpreg_to_ucontext() argument
59 memcpy(&uc->uc_mcontext.mc_fpstate, r, in pt_fpreg_to_ucontext()
63 struct savexmm *sx = (struct savexmm *)&uc->uc_mcontext.mc_fpstate; in pt_fpreg_to_ucontext()
71 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() argument
74 memcpy(r, &uc->uc_mcontext.mc_fpstate, sizeof(struct save87)); in pt_ucontext_to_fpreg()
77 const struct savexmm *sx = (const struct savexmm *)&uc->uc_mcontext.mc_fpstate; in pt_ucontext_to_fpreg()
85 pt_fxsave_to_ucontext(const char* r, ucontext_t *uc) in pt_fxsave_to_ucontext() argument
88 memcpy(&uc->uc_mcontext.mc_fpstate, r, sizeof(struct savexmm)); in pt_fxsave_to_ucontext()
92 pt_ucontext_to_fxsave(const ucontext_t *uc, char *r) in pt_ucontext_to_fxsave() argument
95 memcpy(r, &uc->uc_mcontext.mc_fpstate, sizeof(struct savexmm)); in pt_ucontext_to_fxsave()
101 ucontext_t uc; in pt_md_init() local
103 getcontext(&uc); in pt_md_init()
104 if (uc.uc_mcontext.mc_fpformat == _MC_FPFMT_XMM) in pt_md_init()