Lines Matching +full:- +full:r

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
36 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
38 mcontext_t *mc = &uc->uc_mcontext; in pt_reg_to_ucontext()
39 __greg_t *gr = mc->__gregs; in pt_reg_to_ucontext()
41 gr[_REG_R0] = r->r[0]; in pt_reg_to_ucontext()
42 gr[_REG_R1] = r->r[1]; in pt_reg_to_ucontext()
43 gr[_REG_R2] = r->r[2]; in pt_reg_to_ucontext()
44 gr[_REG_R3] = r->r[3]; in pt_reg_to_ucontext()
45 gr[_REG_R4] = r->r[4]; in pt_reg_to_ucontext()
46 gr[_REG_R5] = r->r[5]; in pt_reg_to_ucontext()
47 gr[_REG_R6] = r->r[6]; in pt_reg_to_ucontext()
48 gr[_REG_R7] = r->r[7]; in pt_reg_to_ucontext()
49 gr[_REG_R8] = r->r[8]; in pt_reg_to_ucontext()
50 gr[_REG_R9] = r->r[9]; in pt_reg_to_ucontext()
51 gr[_REG_R10] = r->r[10]; in pt_reg_to_ucontext()
52 gr[_REG_R11] = r->r[11]; in pt_reg_to_ucontext()
53 gr[_REG_R12] = r->r[12]; in pt_reg_to_ucontext()
54 gr[_REG_SP] = r->r_sp; in pt_reg_to_ucontext()
55 gr[_REG_LR] = r->r_lr; in pt_reg_to_ucontext()
56 gr[_REG_PC] = r->r_pc; in pt_reg_to_ucontext()
57 gr[_REG_CPSR] = r->r_cpsr; in pt_reg_to_ucontext()
61 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
63 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_reg()
65 const __greg_t *gr = mc->__gregs; in pt_ucontext_to_reg()
67 r->r[0] = gr[_REG_R0]; in pt_ucontext_to_reg()
68 r->r[1] = gr[_REG_R1]; in pt_ucontext_to_reg()
69 r->r[2] = gr[_REG_R2]; in pt_ucontext_to_reg()
70 r->r[3] = gr[_REG_R3]; in pt_ucontext_to_reg()
71 r->r[4] = gr[_REG_R4]; in pt_ucontext_to_reg()
72 r->r[5] = gr[_REG_R5]; in pt_ucontext_to_reg()
73 r->r[6] = gr[_REG_R6]; in pt_ucontext_to_reg()
74 r->r[7] = gr[_REG_R7]; in pt_ucontext_to_reg()
75 r->r[8] = gr[_REG_R8]; in pt_ucontext_to_reg()
76 r->r[9] = gr[_REG_R9]; in pt_ucontext_to_reg()
77 r->r[10] = gr[_REG_R10]; in pt_ucontext_to_reg()
78 r->r[11] = gr[_REG_R11]; in pt_ucontext_to_reg()
79 r->r[12] = gr[_REG_R12]; in pt_ucontext_to_reg()
80 r->r_sp = gr[_REG_SP]; in pt_ucontext_to_reg()
81 r->r_lr = gr[_REG_LR]; in pt_ucontext_to_reg()
82 r->r_pc = gr[_REG_PC]; in pt_ucontext_to_reg()
83 r->r_cpsr = gr[_REG_CPSR]; in pt_ucontext_to_reg()
87 pt_fpreg_to_ucontext(const struct fpreg *r, ucontext_t *uc) in pt_fpreg_to_ucontext() argument
91 mc_vfp = uc->uc_mcontext.mc_vfp_ptr; in pt_fpreg_to_ucontext()
94 memcpy(mc_vfp, r, sizeof(*r)); in pt_fpreg_to_ucontext()
98 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() argument
102 mc_vfp = uc->uc_mcontext.mc_vfp_ptr; in pt_ucontext_to_fpreg()
105 memcpy(r, &mc_vfp, sizeof(*r)); in pt_ucontext_to_fpreg()