Searched refs:mc_gpregs (Results 1 – 10 of 10) sorted by relevance
/freebsd/lib/libthread_db/arch/riscv/ |
H A D | libpthread_md.c | 48 memcpy(mc->mc_gpregs.gp_t, r->t, sizeof(mc->mc_gpregs.gp_t)); in pt_reg_to_ucontext() 49 memcpy(mc->mc_gpregs.gp_s, r->s, sizeof(mc->mc_gpregs.gp_s)); in pt_reg_to_ucontext() 50 memcpy(mc->mc_gpregs.gp_a, r->a, sizeof(mc->mc_gpregs.gp_a)); in pt_reg_to_ucontext() 51 mc->mc_gpregs.gp_ra = r->ra; in pt_reg_to_ucontext() 52 mc->mc_gpregs.gp_sp = r->sp; in pt_reg_to_ucontext() 53 mc->mc_gpregs.gp_gp = r->gp; in pt_reg_to_ucontext() 54 mc->mc_gpregs.gp_tp = r->tp; in pt_reg_to_ucontext() 66 memcpy(r->t, mc->mc_gpregs.gp_t, sizeof(mc->mc_gpregs.gp_t)); in pt_ucontext_to_reg() 67 memcpy(r->s, mc->mc_gpregs.gp_s, sizeof(mc->mc_gpregs.gp_s)); in pt_ucontext_to_reg() 68 memcpy(r->a, mc->mc_gpregs.gp_a, sizeof(mc->mc_gpregs.gp_a)); in pt_ucontext_to_reg() [all …]
|
/freebsd/lib/libthread_db/arch/aarch64/ |
H A D | libpthread_md.c | 43 memcpy(mc->mc_gpregs.gp_x, r->x, sizeof(mc->mc_gpregs.gp_x)); in pt_reg_to_ucontext() 44 mc->mc_gpregs.gp_sp = r->sp; in pt_reg_to_ucontext() 45 mc->mc_gpregs.gp_lr = r->lr; in pt_reg_to_ucontext() 46 mc->mc_gpregs.gp_elr = r->elr; in pt_reg_to_ucontext() 47 mc->mc_gpregs.gp_spsr = r->spsr; in pt_reg_to_ucontext() 55 memcpy(r->x, mc->mc_gpregs.gp_x, sizeof(mc->mc_gpregs.gp_x)); in pt_ucontext_to_reg() 56 r->sp = mc->mc_gpregs.gp_sp; in pt_ucontext_to_reg() 57 r->lr = mc->mc_gpregs.gp_lr; in pt_ucontext_to_reg() 58 r->elr = mc->mc_gpregs.gp_elr; in pt_ucontext_to_reg() 59 r->spsr = mc->mc_gpregs.gp_spsr; in pt_ucontext_to_reg()
|
/freebsd/sys/riscv/riscv/ |
H A D | exec_machdep.c | 210 memcpy(mcp->mc_gpregs.gp_t, tf->tf_t, sizeof(mcp->mc_gpregs.gp_t)); in get_mcontext() 211 memcpy(mcp->mc_gpregs.gp_s, tf->tf_s, sizeof(mcp->mc_gpregs.gp_s)); in get_mcontext() 212 memcpy(mcp->mc_gpregs.gp_a, tf->tf_a, sizeof(mcp->mc_gpregs.gp_a)); in get_mcontext() 215 mcp->mc_gpregs.gp_a[0] = 0; in get_mcontext() 219 mcp->mc_gpregs.gp_ra = tf->tf_ra; in get_mcontext() 220 mcp->mc_gpregs.gp_sp = tf->tf_sp; in get_mcontext() 221 mcp->mc_gpregs.gp_gp = tf->tf_gp; in get_mcontext() 222 mcp->mc_gpregs.gp_tp = tf->tf_tp; in get_mcontext() 254 tf->tf_ra = mcp->mc_gpregs.gp_ra; in set_mcontext() 255 tf->tf_sp = mcp->mc_gpregs.gp_sp; in set_mcontext() [all …]
|
/freebsd/sys/arm64/arm64/ |
H A D | exec_machdep.c | 442 mcp->mc_gpregs.gp_x[0] = 0; in get_mcontext() 445 mcp->mc_gpregs.gp_x[0] = tf->tf_x[0]; in get_mcontext() 446 mcp->mc_gpregs.gp_spsr = tf->tf_spsr; in get_mcontext() 450 sizeof(mcp->mc_gpregs.gp_x[1]) * (nitems(mcp->mc_gpregs.gp_x) - 1)); in get_mcontext() 452 mcp->mc_gpregs.gp_sp = tf->tf_sp; in get_mcontext() 453 mcp->mc_gpregs.gp_lr = tf->tf_lr; in get_mcontext() 454 mcp->mc_gpregs.gp_elr = tf->tf_elr; in get_mcontext() 471 spsr = mcp->mc_gpregs.gp_spsr; in set_mcontext() 490 tf->tf_sp = mcp->mc_gpregs.gp_sp; in set_mcontext() 491 tf->tf_lr = mcp->mc_gpregs.gp_lr; in set_mcontext() [all …]
|
/freebsd/tests/sys/kern/ |
H A D | basic_signal.c | 15 #define SET_TRACE_FLAG(ucp) (ucp)->uc_mcontext.mc_gpregs.gp_spsr |= PSR_SS 16 #define CLR_TRACE_FLAG(ucp) (ucp)->uc_mcontext.mc_gpregs.gp_spsr &= ~PSR_SS
|
/freebsd/sys/riscv/include/ |
H A D | ucontext.h | 58 struct gpregs mc_gpregs; member
|
/freebsd/lib/libc/aarch64/gen/ |
H A D | makecontext.c | 68 gp = &ucp->uc_mcontext.mc_gpregs; in __makecontext()
|
/freebsd/lib/libc/riscv/gen/ |
H A D | makecontext.c | 74 gp = &ucp->uc_mcontext.mc_gpregs; in __makecontext()
|
/freebsd/sys/arm64/include/ |
H A D | ucontext.h | 67 struct gpregs mc_gpregs; member
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_linux.cpp | 1995 unsigned long pc = ucontext->uc_mcontext.mc_gpregs.gp_sepc; in GetWriteFlag() 2127 *pc = ucontext->uc_mcontext.mc_gpregs.gp_elr; in GetPcSpBp() 2128 *bp = ucontext->uc_mcontext.mc_gpregs.gp_x[29]; in GetPcSpBp() 2129 *sp = ucontext->uc_mcontext.mc_gpregs.gp_sp; in GetPcSpBp() 2232 *pc = ucontext->uc_mcontext.mc_gpregs.gp_sepc; in GetPcSpBp() 2233 *bp = ucontext->uc_mcontext.mc_gpregs.gp_s[0]; in GetPcSpBp() 2234 *sp = ucontext->uc_mcontext.mc_gpregs.gp_sp; in GetPcSpBp()
|