/linux/arch/mips/kvm/ |
A D | emulate.c | 102 arch->gprs[31] = epc + 8; in kvm_compute_return_epc() 112 arch->gprs[31] = epc + 8; in kvm_compute_return_epc() 141 arch->gprs[31] = instpc + 8; in kvm_compute_return_epc() 155 arch->gprs[insn.i_format.rt]) in kvm_compute_return_epc() 165 arch->gprs[insn.i_format.rt]) in kvm_compute_return_epc() 1045 (vcpu->arch.gprs[rt] >> 24); in kvm_mips_emulate_store() 1049 (vcpu->arch.gprs[rt] >> 16); in kvm_mips_emulate_store() 1053 (vcpu->arch.gprs[rt] >> 8); in kvm_mips_emulate_store() 1078 (vcpu->arch.gprs[rt] << 8); in kvm_mips_emulate_store() 1082 (vcpu->arch.gprs[rt] << 16); in kvm_mips_emulate_store() [all …]
|
A D | hypcall.c | 45 num = vcpu->arch.gprs[2]; /* v0 */ in kvm_mips_handle_hypcall() 46 args[0] = vcpu->arch.gprs[4]; /* a0 */ in kvm_mips_handle_hypcall() 47 args[1] = vcpu->arch.gprs[5]; /* a1 */ in kvm_mips_handle_hypcall() 48 args[2] = vcpu->arch.gprs[6]; /* a2 */ in kvm_mips_handle_hypcall() 49 args[3] = vcpu->arch.gprs[7]; /* a3 */ in kvm_mips_handle_hypcall() 52 args, &vcpu->arch.gprs[2] /* v0 */); in kvm_mips_handle_hypcall()
|
A D | entry.c | 400 UASM_i_LW(&p, i, offsetof(struct kvm_vcpu_arch, gprs[i]), K1); in kvm_mips_build_enter_guest() 413 UASM_i_LW(&p, K0, offsetof(struct kvm_vcpu_arch, gprs[K0]), K1); in kvm_mips_build_enter_guest() 414 UASM_i_LW(&p, K1, offsetof(struct kvm_vcpu_arch, gprs[K1]), K1); in kvm_mips_build_enter_guest() 453 UASM_i_SW(&p, K0, offsetof(struct kvm_vcpu, arch.gprs[K0]), K1); in kvm_mips_build_tlb_refill_exception() 501 UASM_i_LW(&p, K0, offsetof(struct kvm_vcpu, arch.gprs[K0]), K1); in kvm_mips_build_tlb_refill_exception() 540 UASM_i_SW(&p, K0, offsetof(struct kvm_vcpu_arch, gprs[K0]), K1); in kvm_mips_build_exception() 590 UASM_i_SW(&p, i, offsetof(struct kvm_vcpu_arch, gprs[i]), K1); in kvm_mips_build_exit() 605 UASM_i_SW(&p, T0, offsetof(struct kvm_vcpu_arch, gprs[K1]), K1); in kvm_mips_build_exit()
|
A D | mips.c | 665 v = (long)vcpu->arch.gprs[reg->id - KVM_REG_MIPS_R0]; in kvm_mips_get_reg() 799 vcpu->arch.gprs[reg->id - KVM_REG_MIPS_R0] = v; in kvm_mips_set_reg() 1124 vcpu->arch.gprs[i], in kvm_arch_vcpu_dump_regs() 1125 vcpu->arch.gprs[i + 1], in kvm_arch_vcpu_dump_regs() 1126 vcpu->arch.gprs[i + 2], vcpu->arch.gprs[i + 3]); in kvm_arch_vcpu_dump_regs() 1147 for (i = 1; i < ARRAY_SIZE(vcpu->arch.gprs); i++) in kvm_arch_vcpu_ioctl_set_regs() 1148 vcpu->arch.gprs[i] = regs->gpr[i]; in kvm_arch_vcpu_ioctl_set_regs() 1149 vcpu->arch.gprs[0] = 0; /* zero is special, and cannot be set. */ in kvm_arch_vcpu_ioctl_set_regs() 1164 for (i = 0; i < ARRAY_SIZE(vcpu->arch.gprs); i++) in kvm_arch_vcpu_ioctl_get_regs() 1165 regs->gpr[i] = vcpu->arch.gprs[i]; in kvm_arch_vcpu_ioctl_get_regs()
|
/linux/arch/s390/kernel/ |
A D | signal.c | 131 memcpy(&user_sregs.regs.gprs, ®s->gprs, sizeof(sregs->regs.gprs)); in save_sigregs() 168 memcpy(®s->gprs, &user_sregs.regs.gprs, sizeof(sregs->regs.gprs)); in restore_sigregs() 235 return regs->gprs[2]; in SYSCALL_DEFINE0() 259 return regs->gprs[2]; in SYSCALL_DEFINE0() 274 sp = regs->gprs[15]; in get_sigframe() 343 regs->gprs[14] = restorer; in setup_frame() 351 regs->gprs[2] = sig; in setup_frame() 417 regs->gprs[14] = restorer; in setup_rt_frame() 425 regs->gprs[2] = ksig->sig; in setup_rt_frame() 474 switch (regs->gprs[2]) { in arch_do_signal_or_restart() [all …]
|
A D | dumpstack.c | 173 regs->gprs[0], regs->gprs[1], regs->gprs[2], regs->gprs[3]); in show_registers() 175 regs->gprs[4], regs->gprs[5], regs->gprs[6], regs->gprs[7]); in show_registers() 177 regs->gprs[8], regs->gprs[9], regs->gprs[10], regs->gprs[11]); in show_registers() 179 regs->gprs[12], regs->gprs[13], regs->gprs[14], regs->gprs[15]); in show_registers() 189 show_stack(NULL, (unsigned long *) regs->gprs[15], KERN_DEFAULT); in show_regs()
|
A D | compat_signal.c | 78 user_sregs.regs.gprs[i] = (__u32) regs->gprs[i]; in save_sigregs32() 116 regs->gprs[i] = (__u64) user_sregs.regs.gprs[i]; in restore_sigregs32() 134 gprs_high[i] = regs->gprs[i] >> 32; in save_sigregs_ext32() 196 return regs->gprs[2]; in COMPAT_SYSCALL_DEFINE0() 219 return regs->gprs[2]; in COMPAT_SYSCALL_DEFINE0() 311 regs->gprs[14] = restorer; in setup_frame32() 319 regs->gprs[2] = sig; in setup_frame32() 327 regs->gprs[4] = regs->int_code & 127; in setup_frame32() 328 regs->gprs[5] = regs->int_parm_long; in setup_frame32() 390 regs->gprs[14] = restorer; in setup_rt_frame32() [all …]
|
A D | process.c | 57 func = (void *)regs->gprs[9]; in __ret_from_fork() 58 func((void *)regs->gprs[10]); in __ret_from_fork() 125 frame->sf.gprs[5] = (unsigned long)frame + sizeof(struct stack_frame); in copy_thread() 126 frame->sf.gprs[6] = (unsigned long)p; in copy_thread() 128 frame->sf.gprs[8] = (unsigned long)ret_from_fork; in copy_thread() 130 frame->sf.gprs[9] = (unsigned long)frame; in copy_thread() 140 frame->childregs.gprs[9] = new_stackp; /* function */ in copy_thread() 141 frame->childregs.gprs[10] = arg; in copy_thread() 142 frame->childregs.gprs[11] = (unsigned long)do_exit; in copy_thread() 148 frame->childregs.gprs[2] = 0; /* child returns 0 on fork. */ in copy_thread() [all …]
|
A D | syscall.c | 117 nr = regs->gprs[1] & 0xffff; in do_syscall() 122 regs->gprs[2] = nr; in do_syscall() 140 regs->gprs[2] = -ENOSYS; in do_syscall() 144 regs->gprs[2] = current->thread.sys_call_table[nr](regs); in do_syscall() 161 regs->orig_gpr2 = regs->gprs[2]; in __do_syscall()
|
A D | unwind_bc.c | 64 ip = READ_ONCE_NOCHECK(sf->gprs[8]); in unwind_next_frame() 82 ip = READ_ONCE_NOCHECK(sf->gprs[8]); in unwind_next_frame() 93 sp = READ_ONCE_NOCHECK(regs->gprs[15]); in unwind_next_frame() 143 sp = regs->gprs[15]; in __unwind_start() 161 ip = READ_ONCE_NOCHECK(sf->gprs[8]); in __unwind_start()
|
/linux/arch/s390/kvm/ |
A D | diag.c | 76 vcpu->run->s.regs.gprs[rx]); in __diag_page_ref_service() 78 if (vcpu->run->s.regs.gprs[rx] & 7) in __diag_page_ref_service() 97 vcpu->run->s.regs.gprs[ry] = 8; in __diag_page_ref_service() 111 vcpu->run->s.regs.gprs[ry] = 0; in __diag_page_ref_service() 125 vcpu->run->s.regs.gprs[ry] = 0; in __diag_page_ref_service() 131 vcpu->run->s.regs.gprs[ry] = 4; in __diag_page_ref_service() 255 (u32) vcpu->run->s.regs.gprs[2], in __diag_virtio_hypercall() 256 (u32) vcpu->run->s.regs.gprs[3], in __diag_virtio_hypercall() 257 vcpu->run->s.regs.gprs[4]); in __diag_virtio_hypercall() 268 vcpu->run->s.regs.gprs[4]); in __diag_virtio_hypercall() [all …]
|
A D | priv.c | 288 vcpu->run->s.regs.gprs[reg1] &= ~0xff; in handle_iske() 289 vcpu->run->s.regs.gprs[reg1] |= key; in handle_iske() 423 vcpu->run->s.regs.gprs[reg2] |= end; in handle_sske() 465 vcpu->run->s.regs.gprs[0] = 0; in handle_test_block() 543 if (vcpu->run->s.regs.gprs[1]) in handle_tsch() 545 vcpu->run->s.regs.gprs[1]); in handle_tsch() 634 reg0 = vcpu->run->s.regs.gprs[0]; in handle_pqap() 874 vcpu->run->s.regs.gprs[0] = 3 << 28; in handle_stsi() 920 vcpu->run->s.regs.gprs[0] = 0; in handle_stsi() 1000 vcpu->run->s.regs.gprs[reg2] |= in handle_epsw() [all …]
|
A D | sigp.c | 402 u16 cpu_addr = vcpu->run->s.regs.gprs[r3]; in kvm_s390_handle_sigp() 415 parameter = vcpu->run->s.regs.gprs[r1]; in kvm_s390_handle_sigp() 417 parameter = vcpu->run->s.regs.gprs[r1 + 1]; in kvm_s390_handle_sigp() 424 &vcpu->run->s.regs.gprs[r1]); in kvm_s390_handle_sigp() 429 &vcpu->run->s.regs.gprs[r1]); in kvm_s390_handle_sigp() 451 u16 cpu_addr = vcpu->run->s.regs.gprs[r3]; in kvm_s390_handle_sigp_pei()
|
/linux/tools/testing/selftests/powerpc/tm/ |
A D | tm-signal-context-chk-gpr.c | 35 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v… 40 static long gprs[] = { variable 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() 67 fail = (tm_ucp->uc_mcontext.gp_regs[R14 + i] != gprs[NV_GPR_REGS + i]); in signal_usr1() 71 R14 + i, tm_ucp->uc_mcontext.gp_regs[R14 + i], gprs[NV_GPR_REGS + i]); in signal_usr1() 102 rc = tm_signal_self_context_load(pid, gprs, NULL, NULL, NULL); in tm_signal_context_chk_gpr()
|
/linux/tools/testing/selftests/kvm/s390x/ |
A D | resets.c | 96 TEST_ASSERT(!memcmp(®s.gprs, regs_null, sizeof(regs.gprs)), "grs == 0"); in assert_clear() 105 TEST_ASSERT(!memcmp(sync_regs->gprs, regs_null, sizeof(sync_regs->gprs)), in assert_clear() 117 TEST_ASSERT(sync_regs->gprs[0] == 0xffff000000000000UL, in assert_initial_noclear() 119 TEST_ASSERT(sync_regs->gprs[1] == 0x0000555500000000UL, in assert_initial_noclear() 121 TEST_ASSERT(sync_regs->gprs[2] == 0x00000000aaaa0000UL, in assert_initial_noclear() 123 TEST_ASSERT(sync_regs->gprs[3] == 0x0000000000000000UL, in assert_initial_noclear()
|
A D | sync_regs_test.c | 58 REG_COMPARE(gprs[i]); in compare_regs() 151 run->s.regs.gprs[11] = 0xBAD1DEA; in main() 168 TEST_ASSERT(run->s.regs.gprs[11] == 0xBAD1DEA + 1, in main() 170 run->s.regs.gprs[11]); in main() 189 run->s.regs.gprs[11] = 0xDEADBEEF; in main() 197 TEST_ASSERT(run->s.regs.gprs[11] != 0xDEADBEEF, in main() 199 run->s.regs.gprs[11]); in main()
|
/linux/arch/s390/include/asm/ |
A D | syscall.h | 30 regs->gprs[2] = regs->orig_gpr2; in syscall_rollback() 36 unsigned long error = regs->gprs[2]; in syscall_get_error() 52 return regs->gprs[2]; in syscall_get_return_value() 60 regs->gprs[2] = error ? error : val; in syscall_set_return_value() 76 args[n] = regs->gprs[2 + n] & mask; in syscall_get_arguments()
|
A D | ptrace.h | 85 unsigned long gprs[NUM_GPRS]; member 181 #define user_stack_pointer(regs)((regs)->gprs[15]) 186 return regs->gprs[2]; in regs_return_value() 221 return regs->gprs[15]; in kernel_stack_pointer() 226 regs->gprs[2] = rc; in regs_set_return_value()
|
A D | syscall_wrapper.h | 14 m(t6, (regs->gprs[7])) 18 m(t5, (regs->gprs[6])) 22 m(t4, (regs->gprs[5])) 26 m(t3, (regs->gprs[4])) 30 m(t2, (regs->gprs[3]))
|
A D | processor.h | 168 regs->gprs[15] = new_stackp; \ 175 regs->gprs[15] = new_stackp; \ 199 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->gprs[15])
|
/linux/tools/lib/bpf/ |
A D | bpf_tracing.h | 149 #define PT_REGS_PARM1(x) (((PT_REGS_S390 *)(x))->gprs[2]) 150 #define PT_REGS_PARM2(x) (((PT_REGS_S390 *)(x))->gprs[3]) 151 #define PT_REGS_PARM3(x) (((PT_REGS_S390 *)(x))->gprs[4]) 152 #define PT_REGS_PARM4(x) (((PT_REGS_S390 *)(x))->gprs[5]) 153 #define PT_REGS_PARM5(x) (((PT_REGS_S390 *)(x))->gprs[6]) 154 #define PT_REGS_RET(x) (((PT_REGS_S390 *)(x))->gprs[14]) 156 #define PT_REGS_FP(x) (((PT_REGS_S390 *)(x))->gprs[11]) 157 #define PT_REGS_RC(x) (((PT_REGS_S390 *)(x))->gprs[2]) 158 #define PT_REGS_SP(x) (((PT_REGS_S390 *)(x))->gprs[15]) 167 #define PT_REGS_FP_CORE(x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[11]) [all …]
|
/linux/arch/x86/kernel/cpu/ |
A D | amd.c | 44 u32 gprs[8] = { 0 }; in rdmsrl_amd_safe() local 50 gprs[1] = msr; in rdmsrl_amd_safe() 51 gprs[7] = 0x9c5a203a; in rdmsrl_amd_safe() 53 err = rdmsr_safe_regs(gprs); in rdmsrl_amd_safe() 55 *p = gprs[0] | ((u64)gprs[2] << 32); in rdmsrl_amd_safe() 62 u32 gprs[8] = { 0 }; in wrmsrl_amd_safe() local 67 gprs[0] = (u32)val; in wrmsrl_amd_safe() 68 gprs[1] = msr; in wrmsrl_amd_safe() 69 gprs[2] = val >> 32; in wrmsrl_amd_safe() 70 gprs[7] = 0x9c5a203a; in wrmsrl_amd_safe() [all …]
|
/linux/arch/x86/events/intel/ |
A D | ds.c | 1598 regs->ax = gprs->ax; in adaptive_pebs_save_regs() 1599 regs->bx = gprs->bx; in adaptive_pebs_save_regs() 1600 regs->cx = gprs->cx; in adaptive_pebs_save_regs() 1601 regs->dx = gprs->dx; in adaptive_pebs_save_regs() 1602 regs->si = gprs->si; in adaptive_pebs_save_regs() 1603 regs->di = gprs->di; in adaptive_pebs_save_regs() 1604 regs->bp = gprs->bp; in adaptive_pebs_save_regs() 1605 regs->sp = gprs->sp; in adaptive_pebs_save_regs() 1607 regs->r8 = gprs->r8; in adaptive_pebs_save_regs() 1608 regs->r9 = gprs->r9; in adaptive_pebs_save_regs() [all …]
|
/linux/tools/arch/s390/include/uapi/asm/ |
A D | ptrace.h | 285 unsigned long gprs[NUM_GPRS]; member 297 unsigned long gprs[NUM_GPRS]; member 443 unsigned long gprs[NUM_GPRS]; member
|
/linux/arch/s390/include/uapi/asm/ |
A D | ptrace.h | 285 unsigned long gprs[NUM_GPRS]; member 297 unsigned long gprs[NUM_GPRS]; member 443 unsigned long gprs[NUM_GPRS]; member
|