/linux-6.12.1/tools/testing/selftests/powerpc/signal/ |
D | sigfuz.c | 119 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/ |
D | tm-trap.c | 67 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()
|
D | tm-signal-msr-resv.c | 41 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/ |
D | signal_32.c | 119 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 …]
|
D | signal_64.c | 181 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/ |
D | ptrace-view.c | 167 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()
|
D | ptrace-tm.c | 153 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()
|
D | ptrace.c | 420 CHECK_REG(PT_MSR, msr); in pt_regs_check()
|
/linux-6.12.1/tools/testing/selftests/powerpc/include/ |
D | utils.h | 203 #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/ |
D | mmcr2_fcs_fch_test.c | 23 is_hv = !!(uctx->uc_mcontext.gp_regs[PT_MSR] & MSR_HV); in sig_usr2_handler()
|
/linux-6.12.1/arch/microblaze/include/uapi/asm/ |
D | ptrace.h | 63 #define PT_MSR (33 * sizeof(microblaze_reg_t)) macro
|
/linux-6.12.1/arch/powerpc/include/uapi/asm/ |
D | ptrace.h | 102 #define PT_MSR 33 macro
|
/linux-6.12.1/arch/microblaze/kernel/ |
D | entry.S | 211 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
|
D | asm-offsets.c | 25 DEFINE(PT_MSR, offsetof(struct pt_regs, msr)); in main()
|