Home
last modified time | relevance | path

Searched refs:ucp (Results 1 – 12 of 12) sorted by relevance

/tools/testing/selftests/powerpc/signal/
Dsigfuz.c91 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/
Dtm-signal-context-force-tm.c52 ucontext_t *ucp = uc; in usr_signal_handler() local
60 ucp->uc_link = mmap(NULL, sizeof(ucontext_t), in usr_signal_handler()
63 if (ucp->uc_link == (void *)-1) { in usr_signal_handler()
69 ret = madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in usr_signal_handler()
75 memcpy(&ucp->uc_link->uc_mcontext, &ucp->uc_mcontext, in usr_signal_handler()
76 sizeof(ucp->uc_mcontext)); in usr_signal_handler()
79 UCONTEXT_MSR(ucp) |= MSR_TS_S; in usr_signal_handler()
Dtm-signal-msr-resv.c35 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()
Dtm-trap.c63 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()
Dtm-signal-pagefault.c199 ucontext_t *ucp = uc; in signal_handler() local
202 ucp->uc_link->uc_mcontext.regs->nip += 4; in signal_handler()
204 ucp->uc_mcontext.v_regs = in signal_handler()
205 get_uf_mem(sizeof(elf_vrreg_t), ucp->uc_mcontext.v_regs); in signal_handler()
207 ucp->uc_link->uc_mcontext.v_regs = in signal_handler()
208 get_uf_mem(sizeof(elf_vrreg_t), ucp->uc_link->uc_mcontext.v_regs); in signal_handler()
210 ucp->uc_link = get_uf_mem(sizeof(ucontext_t), ucp->uc_link); in signal_handler()
Dtm-signal-context-chk-gpr.c52 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()
Dtm-signal-context-chk-fpu.c50 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()
Dtm-signal-context-chk-vmx.c59 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()
Dtm-signal-context-chk-vsx.c62 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()
Dtm-signal-sigreturn-nt.c22 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/arm64/signal/testcases/
Dtestcases.h41 #define GET_UCP_RESV_SIZE(ucp) \ argument
42 sizeof((ucp)->uc_mcontext.__reserved)
/tools/testing/selftests/powerpc/alignment/
Dalignment_handler.c62 ucontext_t *ucp = ctx; in sighandler() local
71 u32 inst = *(u32 *)ucp->uc_mcontext.gp_regs[PT_NIP]; in sighandler()
72 ucp->uc_mcontext.gp_regs[PT_NIP] += ((inst >> 26 == 1) ? 8 : 4); in sighandler()
74 ucp->uc_mcontext.gp_regs[PT_NIP] += 4; in sighandler()
77 ucp->uc_mcontext.uc_regs->gregs[PT_NIP] += 4; in sighandler()