Home
last modified time | relevance | path

Searched refs:gregs (Results 1 – 16 of 16) sorted by relevance

/tools/testing/selftests/x86/
Dsysret_rip.c73 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { in sigsegv_for_sigreturn_test()
75 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RIP]); in sigsegv_for_sigreturn_test()
80 memcpy(&ctx->uc_mcontext.gregs, &initial_regs, sizeof(gregset_t)); in sigsegv_for_sigreturn_test()
89 memcpy(&initial_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); in sigusr1()
92 ctx->uc_mcontext.gregs[REG_RIP] = rip; in sigusr1()
93 ctx->uc_mcontext.gregs[REG_RCX] = rip; in sigusr1()
96 assert(ctx->uc_mcontext.gregs[REG_EFL] == in sigusr1()
97 ctx->uc_mcontext.gregs[REG_R11]); in sigusr1()
117 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { in sigsegv_for_fallthrough()
119 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RIP]); in sigsegv_for_fallthrough()
Dsigreturn.c309 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in ssptr()
315 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in csptr()
325 return &ctx->uc_mcontext.gregs[REG_SS]; in ssptr()
330 return &ctx->uc_mcontext.gregs[REG_CS]; in csptr()
444 memcpy(&initial_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); in sigusr1()
449 ctx->uc_mcontext.gregs[REG_IP] = in sigusr1()
451 ctx->uc_mcontext.gregs[REG_SP] = (unsigned long)0x8badf00d5aadc0deULL; in sigusr1()
452 ctx->uc_mcontext.gregs[REG_CX] = 0; in sigusr1()
463 ctx->uc_mcontext.gregs[REG_DS] = 0; in sigusr1()
464 ctx->uc_mcontext.gregs[REG_ES] = 0; in sigusr1()
[all …]
Dsyscall_arg_fault.c51 long ax = (long)ctx->uc_mcontext.gregs[REG_AX]; in sigsegv_or_sigbus()
56 printf("\tIP = 0x%lx\n", (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in sigsegv_or_sigbus()
76 unsigned short *ip = (unsigned short *)ctx->uc_mcontext.gregs[REG_IP]; in sigtrap()
93 unsigned short *ip = (unsigned short *)ctx->uc_mcontext.gregs[REG_IP]; in sigill()
Dsingle_step_syscall.c88 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in sigtrap()
104 (unsigned long)ctx->uc_mcontext.gregs[REG_IP], in print_and_longjmp()
105 (unsigned long)ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_TF); in print_and_longjmp()
107 sig_eflags = (unsigned long)ctx->uc_mcontext.gregs[REG_EFL]; in print_and_longjmp()
Dunwind_vdso.c111 unsigned long ip = ctx->uc_mcontext.gregs[REG_EIP]; in sigtrap()
117 return_address = *(unsigned long *)(unsigned long)ctx->uc_mcontext.gregs[REG_ESP]; in sigtrap()
127 ctx->uc_mcontext.gregs[REG_EFL] &= ~X86_EFLAGS_TF; in sigtrap()
Dmov_ss_trap.c122 (unsigned long)ctx->uc_mcontext.gregs[REG_IP], in sigtrap()
123 !!(ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_RF)); in sigtrap()
131 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in handle_and_return()
139 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in handle_and_longjmp()
Dentry_from_vm86.c58 if (ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_VM || in sighandler()
59 (ctx->uc_mcontext.gregs[REG_CS] & 3) != 3) { in sighandler()
73 (unsigned long)ctx->uc_mcontext.gregs[REG_EFL], in sighandler()
74 (unsigned short)ctx->uc_mcontext.gregs[REG_CS]); in sighandler()
Dtest_vsyscall.c189 segv_err = ctx->uc_mcontext.gregs[REG_ERR]; in sigsegv()
521 unsigned long ip = ctx->uc_mcontext.gregs[REG_RIP]; in sigtrap()
Dfsgsbase.c76 ctx->uc_mcontext.gregs[REG_RIP] += 4; /* Skip the faulting mov */ in sigsegv()
/tools/testing/selftests/powerpc/include/
Dutils.h142 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_NIP]
143 #define UCONTEXT_MSR(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_MSR]
/tools/testing/selftests/powerpc/alignment/
Dcopy_first_unaligned.c24 unsigned int *pc = (unsigned int *)ctx->uc_mcontext.uc_regs->gregs[PT_NIP]; in signal_action_handler()
Dalignment_handler.c86 ucp->uc_mcontext.uc_regs->gregs[PT_NIP] += 4; in sighandler()
/tools/testing/selftests/powerpc/tm/
Dtm-signal-msr-resv.c43 ucp->uc_mcontext.uc_regs->gregs[PT_MSR] |= (7ULL); in signal_usr1()
/tools/testing/selftests/vm/
Dpkey-powerpc.h15 #define gregs gp_regs macro
Dprotection_keys.c339 trapno = uctxt->uc_mcontext.gregs[REG_TRAPNO]; in signal_handler()
340 ip = uctxt->uc_mcontext.gregs[REG_IP_IDX]; in signal_handler()
/tools/testing/selftests/powerpc/copyloops/
Dexc_validate.c16 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_NIP]