Home
last modified time | relevance | path

Searched refs:uregs (Results 1 – 25 of 33) sorted by relevance

12

/linux/arch/arc/kernel/
H A Dsignal.c106 struct user_regs_struct uregs; in stash_usr_regs() local
108 uregs.scratch.bta = regs->bta; in stash_usr_regs()
109 uregs.scratch.lp_start = regs->lp_start; in stash_usr_regs()
110 uregs.scratch.lp_end = regs->lp_end; in stash_usr_regs()
111 uregs.scratch.lp_count = regs->lp_count; in stash_usr_regs()
112 uregs.scratch.status32 = regs->status32; in stash_usr_regs()
113 uregs.scratch.ret = regs->ret; in stash_usr_regs()
114 uregs.scratch.blink = regs->blink; in stash_usr_regs()
115 uregs.scratch.fp = regs->fp; in stash_usr_regs()
116 uregs.scratch.gp = regs->r26; in stash_usr_regs()
[all …]
/linux/arch/arm/include/uapi/asm/
H A Dptrace.h131 long uregs[18]; member
135 #define ARM_cpsr uregs[16]
136 #define ARM_pc uregs[15]
137 #define ARM_lr uregs[14]
138 #define ARM_sp uregs[13]
139 #define ARM_ip uregs[12]
140 #define ARM_fp uregs[11]
141 #define ARM_r10 uregs[10]
142 #define ARM_r9 uregs[9]
143 #define ARM_r8 uregs[8]
[all …]
/linux/arch/arm/probes/kprobes/
H A Dactions-arm.c77 register unsigned long rtv asm("r0") = regs->uregs[rt]; in emulate_ldrdstrd()
78 register unsigned long rt2v asm("r1") = regs->uregs[rt+1]; in emulate_ldrdstrd()
80 : regs->uregs[rn]; in emulate_ldrdstrd()
81 register unsigned long rmv asm("r3") = regs->uregs[rm]; in emulate_ldrdstrd()
91 regs->uregs[rt] = rtv; in emulate_ldrdstrd()
92 regs->uregs[rt+1] = rt2v; in emulate_ldrdstrd()
94 regs->uregs[rn] = rnv; in emulate_ldrdstrd()
108 : regs->uregs[rn]; in emulate_ldr()
109 register unsigned long rmv asm("r3") = regs->uregs[rm]; in emulate_ldr()
121 regs->uregs[rt] = rtv; in emulate_ldr()
[all …]
H A Dactions-thumb.c31 unsigned long rnv = (rn == 15) ? pc : regs->uregs[rn]; in t32_simulate_table_branch()
32 unsigned long rmv = regs->uregs[rm]; in t32_simulate_table_branch()
49 regs->uregs[rd] = regs->ARM_cpsr & mask; in t32_simulate_mrs()
140 regs->uregs[rt] = rtv; in t32_simulate_ldr_literal()
166 register unsigned long rt1v asm("r0") = regs->uregs[rt1]; in t32_emulate_ldrdstrd()
167 register unsigned long rt2v asm("r1") = regs->uregs[rt2]; in t32_emulate_ldrdstrd()
169 : regs->uregs[rn]; in t32_emulate_ldrdstrd()
179 regs->uregs[rn] = rnv; /* Writeback base register */ in t32_emulate_ldrdstrd()
180 regs->uregs[rt1] = rt1v; in t32_emulate_ldrdstrd()
181 regs->uregs[rt2] = rt2v; in t32_emulate_ldrdstrd()
[all …]
H A Dactions-common.c27 long *addr = (long *)regs->uregs[rn]; in simulate_ldm1stm1()
47 regs->uregs[reg] = *addr++; in simulate_ldm1stm1()
49 *addr++ = regs->uregs[reg]; in simulate_ldm1stm1()
56 regs->uregs[rn] = (long)addr; in simulate_ldm1stm1()
114 (struct pt_regs *)(regs->uregs+2)); in emulate_generic_r2_14_noflags()
122 (struct pt_regs *)(regs->uregs+3)); in emulate_ldm_r3_15()
/linux/arch/arm/mm/
H A Dalignment.c336 regs->uregs[RN_BITS(instr)] = addr; in do_alignment_finish_ldst()
357 regs->uregs[rd] = val; in do_alignment_ldrhstrh()
359 put16_unaligned_check(regs->uregs[rd], addr); in do_alignment_ldrhstrh()
375 regs->uregs[rd] = val; in do_alignment_ldrhstrh()
378 put16t_unaligned_check(regs->uregs[rd], addr); in do_alignment_ldrhstrh()
414 regs->uregs[rd] = val; in do_alignment_ldrdstrd()
416 regs->uregs[rd2] = val; in do_alignment_ldrdstrd()
418 put32_unaligned_check(regs->uregs[rd], addr); in do_alignment_ldrdstrd()
419 put32_unaligned_check(regs->uregs[rd2], addr + 4); in do_alignment_ldrdstrd()
434 regs->uregs[rd] = val; in do_alignment_ldrdstrd()
[all …]
/linux/arch/x86/mm/
H A Dextable.c224 struct pt_regs *uregs = (struct pt_regs *)(regs->sp - offsetof(struct pt_regs, orig_ax)); in ex_handler_eretu() local
225 unsigned short ss = uregs->ss; in ex_handler_eretu()
226 unsigned short cs = uregs->cs; in ex_handler_eretu()
233 regs->fred_ss.nmi = uregs->fred_ss.nmi; in ex_handler_eretu()
278 fred_info(uregs)->edata = fred_event_data(regs); in ex_handler_eretu()
279 uregs->ssx = regs->ssx; in ex_handler_eretu()
280 uregs->fred_ss.ss = ss; in ex_handler_eretu()
282 uregs->fred_ss.nmi = 0; in ex_handler_eretu()
283 uregs->csx = regs->csx; in ex_handler_eretu()
284 uregs->fred_cs.sl = 0; in ex_handler_eretu()
[all …]
/linux/arch/sparc/kernel/
H A Dptrace_32.c49 u32 *uregs) in regwindow32_get() argument
55 if (copy_from_user(uregs, (void __user *)reg_window, size)) in regwindow32_get()
58 if (access_process_vm(target, reg_window, uregs, size, in regwindow32_get()
67 u32 *uregs) in regwindow32_set() argument
73 if (copy_to_user((void __user *)reg_window, uregs, size)) in regwindow32_set()
76 if (access_process_vm(target, reg_window, uregs, size, in regwindow32_set()
88 u32 uregs[16]; in genregs32_get() local
96 if (regwindow32_get(target, regs, uregs)) in genregs32_get()
98 membuf_write(&to, uregs, 16 * sizeof(u32)); in genregs32_get()
112 u32 uregs[16]; in genregs32_set() local
[all …]
H A Dptrace_64.c537 u32 uregs[16]; in genregs32_get() local
548 uregs, sizeof(uregs))) in genregs32_get()
550 membuf_write(&to, uregs, 16 * sizeof(u32)); in genregs32_get()
802 u32 uregs[19]; in setregs_set() local
809 uregs, in setregs_set()
816 tstate |= psr_to_tstate_icc(uregs[0]); in setregs_set()
817 if (uregs[0] & PSR_SYSCALL) in setregs_set()
820 regs->tpc = uregs[1]; in setregs_set()
821 regs->tnpc = uregs[2]; in setregs_set()
822 regs->y = uregs[3]; in setregs_set()
[all …]
/linux/arch/mips/kernel/
H A Dprocess.c871 void mips_dump_regs32(u32 *uregs, const struct pt_regs *regs) in mips_dump_regs32() argument
878 uregs[i] = 0; in mips_dump_regs32()
880 uregs[i] = regs->regs[i - MIPS32_EF_R0]; in mips_dump_regs32()
883 uregs[MIPS32_EF_LO] = regs->lo; in mips_dump_regs32()
884 uregs[MIPS32_EF_HI] = regs->hi; in mips_dump_regs32()
885 uregs[MIPS32_EF_CP0_EPC] = regs->cp0_epc; in mips_dump_regs32()
886 uregs[MIPS32_EF_CP0_BADVADDR] = regs->cp0_badvaddr; in mips_dump_regs32()
887 uregs[MIPS32_EF_CP0_STATUS] = regs->cp0_status; in mips_dump_regs32()
888 uregs[MIPS32_EF_CP0_CAUSE] = regs->cp0_cause; in mips_dump_regs32()
893 void mips_dump_regs64(u64 *uregs, const struct pt_regs *regs) in mips_dump_regs64() argument
[all …]
H A Dptrace.c222 u32 uregs[ELF_NGREG] = {}; in gpr32_get() local
224 mips_dump_regs32(uregs, regs); in gpr32_get()
225 return membuf_write(&to, uregs, sizeof(uregs)); in gpr32_get()
234 u32 uregs[ELF_NGREG]; in gpr32_set() local
244 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, in gpr32_set()
245 sizeof(uregs)); in gpr32_set()
258 regs->regs[i - MIPS32_EF_R0] = (s32)uregs[i]; in gpr32_set()
261 regs->lo = (s32)uregs[i]; in gpr32_set()
264 regs->hi = (s32)uregs[i]; in gpr32_set()
267 regs->cp0_epc = (s32)uregs[i]; in gpr32_set()
[all …]
/linux/arch/loongarch/kernel/
H A Dprocess.c360 void loongarch_dump_regs64(u64 *uregs, const struct pt_regs *regs) in loongarch_dump_regs64() argument
365 uregs[i] = regs->regs[i - LOONGARCH_EF_R0]; in loongarch_dump_regs64()
368 uregs[LOONGARCH_EF_ORIG_A0] = regs->orig_a0; in loongarch_dump_regs64()
369 uregs[LOONGARCH_EF_CSR_ERA] = regs->csr_era; in loongarch_dump_regs64()
370 uregs[LOONGARCH_EF_CSR_BADV] = regs->csr_badvaddr; in loongarch_dump_regs64()
371 uregs[LOONGARCH_EF_CSR_CRMD] = regs->csr_crmd; in loongarch_dump_regs64()
372 uregs[LOONGARCH_EF_CSR_PRMD] = regs->csr_prmd; in loongarch_dump_regs64()
373 uregs[LOONGARCH_EF_CSR_EUEN] = regs->csr_euen; in loongarch_dump_regs64()
374 uregs[LOONGARCH_EF_CSR_ECFG] = regs->csr_ecfg; in loongarch_dump_regs64()
375 uregs[LOONGARCH_EF_CSR_ESTAT] = regs->csr_estat; in loongarch_dump_regs64()
/linux/arch/arm/probes/uprobes/
H A Dactions-arm.c72 autask->backup = regs->uregs[pcreg]; in uprobe_set_pc()
73 regs->uregs[pcreg] = regs->ARM_pc + 8; in uprobe_set_pc()
81 regs->uregs[auprobe->pcreg] = autask->backup; in uprobe_unset_pc()
90 alu_write_pc(regs->uregs[pcreg], regs); in uprobe_aluwrite_pc()
91 regs->uregs[pcreg] = autask->backup; in uprobe_aluwrite_pc()
100 load_write_pc(regs->uregs[pcreg], regs); in uprobe_write_pc()
101 regs->uregs[pcreg] = autask->backup; in uprobe_write_pc()
/linux/arch/x86/kernel/
H A Dmsr.c150 u32 __user *uregs = (u32 __user *)arg; in msr_ioctl() local
161 if (copy_from_user(&regs, uregs, sizeof(regs))) { in msr_ioctl()
168 if (copy_to_user(uregs, &regs, sizeof(regs))) in msr_ioctl()
177 if (copy_from_user(&regs, uregs, sizeof(regs))) { in msr_ioctl()
194 if (copy_to_user(uregs, &regs, sizeof(regs))) in msr_ioctl()
/linux/arch/xtensa/kernel/
H A Dptrace.c244 static int ptrace_getregs(struct task_struct *child, void __user *uregs) in ptrace_getregs() argument
247 0, sizeof(xtensa_gregset_t), uregs); in ptrace_getregs()
250 static int ptrace_setregs(struct task_struct *child, void __user *uregs) in ptrace_setregs() argument
253 0, sizeof(xtensa_gregset_t), uregs); in ptrace_setregs()
256 static int ptrace_getxregs(struct task_struct *child, void __user *uregs) in ptrace_getxregs() argument
259 0, sizeof(elf_xtregs_t), uregs); in ptrace_getxregs()
262 static int ptrace_setxregs(struct task_struct *child, void __user *uregs) in ptrace_setxregs() argument
265 0, sizeof(elf_xtregs_t), uregs); in ptrace_setxregs()
/linux/arch/m68k/kernel/
H A Dptrace.c307 u32 uregs[ELF_NGREG]; in m68k_regset_get() local
309 ELF_CORE_COPY_REGS(uregs, ptregs); in m68k_regset_get()
310 return membuf_write(&to, uregs, sizeof(uregs)); in m68k_regset_get()
/linux/arch/arm/kernel/
H A Dswp_emulate.c188 address = regs->uregs[EXTRACT_REG_NUM(instr, RN_OFFSET)]; in swp_handler()
189 data = regs->uregs[EXTRACT_REG_NUM(instr, RT2_OFFSET)]; in swp_handler()
214 regs->uregs[destreg] = data; in swp_handler()
H A Dperf_regs.c16 return regs->uregs[idx]; in perf_reg_value()
H A Dptrace.c163 return task_pt_regs(task)->uregs[offset]; in get_user_reg()
179 newregs.uregs[offset] = data; in put_user_reg()
182 regs->uregs[offset] = data; in put_user_reg()
/linux/arch/microblaze/mm/
H A Dfault.c175 struct pt_regs *uregs = current->thread.regs; in do_page_fault() local
176 if (uregs == NULL) in do_page_fault()
191 if (address + 2048 < uregs->r1 in do_page_fault()
/linux/arch/arm/probes/
H A Ddecode-arm.c80 long rmv = regs->uregs[rm]; in simulate_blx2bx()
96 regs->uregs[rd] = regs->ARM_cpsr & mask; in simulate_mrs()
102 regs->uregs[12] = regs->uregs[13]; in simulate_mov_ipsp()
/linux/tools/lib/bpf/
H A Dbpf_tracing.h198 #define __PT_PARM1_REG uregs[0]
199 #define __PT_PARM2_REG uregs[1]
200 #define __PT_PARM3_REG uregs[2]
201 #define __PT_PARM4_REG uregs[3]
207 #define __PT_PARM5_SYSCALL_REG uregs[4]
208 #define __PT_PARM6_SYSCALL_REG uregs[5]
209 #define __PT_PARM7_SYSCALL_REG uregs[6]
211 #define __PT_RET_REG uregs[14]
212 #define __PT_FP_REG uregs[11] /* Works only with CONFIG_FRAME_POINTER */
213 #define __PT_RC_REG uregs[0]
[all …]
/linux/arch/arm/include/asm/
H A Dprocessor.h61 memset(regs->uregs, 0, sizeof(regs->uregs)); \
/linux/arch/arm/nwfpe/
H A Dfpmodule.inl32 unsigned int val = regs->uregs[nReg];
42 regs->uregs[nReg] = val;
/linux/arch/mips/include/asm/
H A Delf.h214 void mips_dump_regs32(u32 *uregs, const struct pt_regs *regs);
215 void mips_dump_regs64(u64 *uregs, const struct pt_regs *regs);

12