Searched refs:mc_gpregs (Results 1 – 9 of 9) 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() 55 mc->mc_gpregs.gp_sepc = r->sepc; in pt_reg_to_ucontext() 56 mc->mc_gpregs.gp_sstatus = r->sstatus; 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() [all …]
|
/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() 216 mcp->mc_gpregs.gp_t[0] = 0; /* clear syscall error */ 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() 223 mcp->mc_gpregs.gp_sepc = tf->tf_sepc; in get_mcontext() [all …]
|
/freebsd/sys/arm64/arm64/ |
H A D | exec_machdep.c | 442 mcp->mc_gpregs.gp_x[0] = 0; in get_mcontext() 443 mcp->mc_gpregs.gp_spsr = tf->tf_spsr & ~PSR_C; 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() 449 memcpy(&mcp->mc_gpregs.gp_x[1], &tf->tf_x[1], 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() 472 spsr = mcp->mc_gpregs.gp_spsr; 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/riscv/gen/ |
H A D | makecontext.c | 74 gp = &ucp->uc_mcontext.mc_gpregs; in __makecontext()
|
/freebsd/lib/libc/aarch64/gen/ |
H A D | makecontext.c | 68 gp = &ucp->uc_mcontext.mc_gpregs; in __makecontext()
|
/freebsd/sys/arm64/include/ |
H A D | ucontext.h | 75 struct gpregs mc_gpregs; member
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_linux.cpp | 2076 unsigned long pc = ucontext->uc_mcontext.mc_gpregs.gp_sepc; in GetWriteFlag() 2367 *pc = ucontext->uc_mcontext.mc_gpregs.gp_elr; in GetPcSpBp() 2368 *bp = ucontext->uc_mcontext.mc_gpregs.gp_x[29]; in GetPcSpBp() 2369 *sp = ucontext->uc_mcontext.mc_gpregs.gp_sp; in GetPcSpBp() 2472 *pc = ucontext->uc_mcontext.mc_gpregs.gp_sepc; in GetPcSpBp() 2473 *bp = ucontext->uc_mcontext.mc_gpregs.gp_s[0]; in GetPcSpBp() 2474 *sp = ucontext->uc_mcontext.mc_gpregs.gp_sp; in GetPcSpBp()
|