Home
last modified time | relevance | path

Searched refs:PT_MSR (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/tools/testing/selftests/powerpc/signal/
Dsigfuz.c119 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= MSR_TS_S; in trap_signal_handler()
122 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
125 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
132 ucp->uc_mcontext.gp_regs[PT_MSR] |= MSR_TS_S; in trap_signal_handler()
135 ucp->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
138 ucp->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
153 ucp->uc_mcontext.gp_regs[PT_MSR] = random(); in trap_signal_handler()
157 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] = random(); in trap_signal_handler()
/linux-6.12.1/tools/testing/selftests/powerpc/tm/
Dtm-trap.c67 thread_endianness = MSR_LE & ucp->uc_mcontext.gp_regs[PT_MSR]; in trap_signal_handler()
123 ucp->uc_mcontext.gp_regs[PT_MSR] |= 1UL; in trap_signal_handler()
141 ucp->uc_mcontext.gp_regs[PT_MSR] |= 1UL; in trap_signal_handler()
171 ucp->uc_mcontext.gp_regs[PT_MSR] &= ~1UL; in trap_signal_handler()
Dtm-signal-msr-resv.c41 ucp->uc_mcontext.gp_regs[PT_MSR] |= (7ULL << 32); in signal_usr1()
43 ucp->uc_mcontext.uc_regs->gregs[PT_MSR] |= (7ULL); in signal_usr1()
/linux-6.12.1/arch/powerpc/kernel/
Dsignal_32.c119 if ((i == PT_MSR) || (i == PT_SOFTE)) in __unsafe_restore_general_regs()
159 unsafe_copy_from_user(regs, &sr->mc_gregs, PT_MSR * sizeof(elf_greg_t), failed); in __unsafe_restore_general_regs()
331 unsafe_put_user(msr, &frame->mc_gregs[PT_MSR], failed); in __unsafe_save_user_regs()
337 unsafe_put_user(0, &tm_frame->mc_gregs[PT_MSR], failed); in __unsafe_save_user_regs()
382 unsafe_put_user((msr >> 32), &tm_frame->mc_gregs[PT_MSR], failed); in save_tm_user_regs_unsafe()
439 unsafe_put_user(msr, &frame->mc_gregs[PT_MSR], failed); in save_tm_user_regs_unsafe()
485 unsafe_get_user(msr, &sr->mc_gregs[PT_MSR], failed); in restore_user_regs()
593 unsafe_get_user(msr, &sr->mc_gregs[PT_MSR], failed); in restore_tm_user_regs()
663 unsafe_get_user(msr_hi, &tm_sr->mc_gregs[PT_MSR], failed); in restore_tm_user_regs()
1015 if (__get_user(new_msr, &mcp->mc_gregs[PT_MSR])) in COMPAT_SYSCALL_DEFINE3()
[all …]
Dsignal_64.c181 unsafe_put_user(msr, &sc->gp_regs[PT_MSR], efault_out); in __unsafe_setup_sigcontext()
319 err |= __put_user(msr, &tm_sc->gp_regs[PT_MSR]); in setup_tm_sigcontexts()
320 err |= __put_user(msr, &sc->gp_regs[PT_MSR]); in setup_tm_sigcontexts()
360 unsafe_get_user(msr, &sc->gp_regs[PT_MSR], efault_out); in __unsafe_restore_sigcontext()
473 err |= __get_user(msr, &sc->gp_regs[PT_MSR]); in restore_tm_sigcontexts()
665 get_user(new_msr, &new_ctx->uc_mcontext.gp_regs[PT_MSR])) in SYSCALL_DEFINE3()
800 if (__get_user(msr, &uc->uc_mcontext.gp_regs[PT_MSR])) in SYSCALL_DEFINE0()
/linux-6.12.1/arch/powerpc/kernel/ptrace/
Dptrace-view.c167 if (regno == PT_MSR) { in ptrace_get_reg()
203 if (regno == PT_MSR) in ptrace_put_reg()
250 0, PT_MSR * sizeof(reg)); in gpr_set()
254 PT_MSR * sizeof(reg), in gpr_set()
255 (PT_MSR + 1) * sizeof(reg)); in gpr_set()
706 for (i = 0; i < PT_MSR; i++) in gpr32_get_common()
724 for (; count > 0 && pos < PT_MSR; --count) in gpr32_set_common_kernel()
727 if (count > 0 && pos == PT_MSR) { in gpr32_set_common_kernel()
767 for (; count > 0 && pos < PT_MSR; --count) { in gpr32_set_common_user()
772 if (count > 0 && pos == PT_MSR) { in gpr32_set_common_user()
Dptrace-tm.c153 0, PT_MSR * sizeof(reg)); in tm_cgpr_set()
157 PT_MSR * sizeof(reg), in tm_cgpr_set()
158 (PT_MSR + 1) * sizeof(reg)); in tm_cgpr_set()
Dptrace.c420 CHECK_REG(PT_MSR, msr); in pt_regs_check()
/linux-6.12.1/tools/testing/selftests/powerpc/include/
Dutils.h203 #define UCONTEXT_MSR(UC) (UC)->uc_mcontext.gp_regs[PT_MSR]
206 #define UCONTEXT_MSR(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_MSR]
/linux-6.12.1/tools/testing/selftests/powerpc/pmu/sampling_tests/
Dmmcr2_fcs_fch_test.c23 is_hv = !!(uctx->uc_mcontext.gp_regs[PT_MSR] & MSR_HV); in sig_usr2_handler()
/linux-6.12.1/arch/microblaze/include/uapi/asm/
Dptrace.h63 #define PT_MSR (33 * sizeof(microblaze_reg_t)) macro
/linux-6.12.1/arch/powerpc/include/uapi/asm/
Dptrace.h102 #define PT_MSR 33 macro
/linux-6.12.1/arch/microblaze/kernel/
Dentry.S211 swi r11, r1, PT_MSR;
246 lwi r11, r1, PT_MSR; \
251 lwi r11, r1, PT_MSR; \
808 lwi r2, r1, PT_MSR
904 swi r2, r1, PT_MSR
Dasm-offsets.c25 DEFINE(PT_MSR, offsetof(struct pt_regs, msr)); in main()