Searched refs:gregs (Results 1 – 16 of 16) sorted by relevance
/tools/testing/selftests/x86/ |
D | sysret_rip.c | 73 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()
|
D | sigreturn.c | 309 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 …]
|
D | syscall_arg_fault.c | 51 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()
|
D | single_step_syscall.c | 88 (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()
|
D | unwind_vdso.c | 111 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()
|
D | mov_ss_trap.c | 122 (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()
|
D | entry_from_vm86.c | 58 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()
|
D | test_vsyscall.c | 189 segv_err = ctx->uc_mcontext.gregs[REG_ERR]; in sigsegv() 521 unsigned long ip = ctx->uc_mcontext.gregs[REG_RIP]; in sigtrap()
|
D | fsgsbase.c | 76 ctx->uc_mcontext.gregs[REG_RIP] += 4; /* Skip the faulting mov */ in sigsegv()
|
/tools/testing/selftests/powerpc/include/ |
D | utils.h | 142 #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/ |
D | copy_first_unaligned.c | 24 unsigned int *pc = (unsigned int *)ctx->uc_mcontext.uc_regs->gregs[PT_NIP]; in signal_action_handler()
|
D | alignment_handler.c | 86 ucp->uc_mcontext.uc_regs->gregs[PT_NIP] += 4; in sighandler()
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-msr-resv.c | 43 ucp->uc_mcontext.uc_regs->gregs[PT_MSR] |= (7ULL); in signal_usr1()
|
/tools/testing/selftests/vm/ |
D | pkey-powerpc.h | 15 #define gregs gp_regs macro
|
D | protection_keys.c | 339 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/ |
D | exc_validate.c | 16 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_NIP]
|