Searched refs:ucp (Results 1 – 10 of 10) sorted by relevance
/tools/testing/selftests/powerpc/signal/ |
D | sigfuz.c | 91 ucontext_t *ucp = uc; in trap_signal_handler() local 93 ucp->uc_link = tmp_uc; in trap_signal_handler() 102 memset(ucp->uc_link, rand(), sizeof(ucontext_t)); in trap_signal_handler() 104 memcpy(ucp->uc_link, uc, sizeof(ucontext_t)); in trap_signal_handler() 111 ucp->uc_link = tmp_uc; in trap_signal_handler() 113 madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in trap_signal_handler() 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() [all …]
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-context-force-tm.c | 51 ucontext_t *ucp = uc; in usr_signal_handler() local 59 ucp->uc_link = mmap(NULL, sizeof(ucontext_t), in usr_signal_handler() 62 if (ucp->uc_link == (void *)-1) { in usr_signal_handler() 68 ret = madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in usr_signal_handler() 74 memcpy(&ucp->uc_link->uc_mcontext, &ucp->uc_mcontext, in usr_signal_handler() 75 sizeof(ucp->uc_mcontext)); in usr_signal_handler() 78 UCONTEXT_MSR(ucp) |= MSR_TS_S; in usr_signal_handler()
|
D | tm-signal-msr-resv.c | 35 ucontext_t *ucp = uc; in signal_usr1() local 38 ucp->uc_link = ucp; in signal_usr1() 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()
|
D | tm-trap.c | 63 ucontext_t *ucp = uc; in trap_signal_handler() local 67 thread_endianness = MSR_LE & ucp->uc_mcontext.gp_regs[PT_MSR]; in trap_signal_handler() 116 ucp->uc_mcontext.gp_regs[PT_NIP] += 16; in trap_signal_handler() 123 ucp->uc_mcontext.gp_regs[PT_MSR] |= 1UL; in trap_signal_handler() 124 ucp->uc_mcontext.gp_regs[PT_NIP] += 4; 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() 172 ucp->uc_mcontext.gp_regs[PT_NIP] += 8; in trap_signal_handler()
|
D | tm-signal-context-chk-gpr.c | 52 ucontext_t *ucp = uc; in signal_usr1() local 53 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 57 fail = (ucp->uc_mcontext.gp_regs[R14 + i] != gprs[i]); in signal_usr1() 61 R14 + i, ucp->uc_mcontext.gp_regs[R14 + i], gprs[i]); in signal_usr1()
|
D | tm-signal-context-chk-fpu.c | 50 ucontext_t *ucp = uc; in signal_usr1() local 51 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 55 fail = (ucp->uc_mcontext.fp_regs[FPR14 + i] != fps[i]); in signal_usr1() 59 FPR14 + i, ucp->uc_mcontext.fp_regs[FPR14 + i], fps[i]); in signal_usr1()
|
D | tm-signal-context-chk-vmx.c | 59 ucontext_t *ucp = uc; in signal_usr1() local 60 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 64 fail = memcmp(ucp->uc_mcontext.v_regs->vrregs[VMX20 + i], in signal_usr1() 71 printf("%08x", ucp->uc_mcontext.v_regs->vrregs[VMX20 + i][j]); in signal_usr1()
|
D | tm-signal-context-chk-vsx.c | 62 ucontext_t *ucp = uc; in signal_usr1() local 63 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 96 long *vsx_ptr = (long *)(ucp->uc_mcontext.v_regs + 1); in signal_usr1() 106 memcpy(vsx, &ucp->uc_mcontext.fp_regs[FPR20 + i], 8); in signal_usr1()
|
D | tm-signal-sigreturn-nt.c | 22 ucontext_t *ucp = (ucontext_t *) uc; in trap_signal_handler() local 27 ucp->uc_mcontext.regs->nip += 4; in trap_signal_handler()
|
/tools/testing/selftests/powerpc/alignment/ |
D | alignment_handler.c | 59 ucontext_t *ucp = ctx; in sighandler() local 67 ucp->uc_mcontext.gp_regs[PT_NIP] += 4; in sighandler() 69 ucp->uc_mcontext.uc_regs->gregs[PT_NIP] += 4; in sighandler()
|