Home
last modified time | relevance | path

Searched refs:u_regs (Results 1 – 25 of 34) sorted by relevance

12

/Linux-v6.6/arch/sparc/kernel/
Dprocess.c20 unsigned long orig_i1 = regs->u_regs[UREG_I1]; in sparc_fork()
25 .stack = regs->u_regs[UREG_FP], in sparc_fork()
36 regs->u_regs[UREG_I1] = orig_i1; in sparc_fork()
43 unsigned long orig_i1 = regs->u_regs[UREG_I1]; in sparc_vfork()
50 .stack = regs->u_regs[UREG_FP], in sparc_vfork()
61 regs->u_regs[UREG_I1] = orig_i1; in sparc_vfork()
68 unsigned long orig_i1 = regs->u_regs[UREG_I1]; in sparc_clone()
69 unsigned int flags = lower_32_bits(regs->u_regs[UREG_I0]); in sparc_clone()
75 .tls = regs->u_regs[UREG_I3], in sparc_clone()
80 args.pidfd = compat_ptr(regs->u_regs[UREG_I2]); in sparc_clone()
[all …]
Dsignal_64.c44 regs->u_regs[UREG_I0]; in sparc64_set_context()
62 if (regs->u_regs[UREG_I1]) { in sparc64_set_context()
84 err |= __get_user(regs->u_regs[UREG_G1], (&(*grp)[MC_G1])); in sparc64_set_context()
85 err |= __get_user(regs->u_regs[UREG_G2], (&(*grp)[MC_G2])); in sparc64_set_context()
86 err |= __get_user(regs->u_regs[UREG_G3], (&(*grp)[MC_G3])); in sparc64_set_context()
87 err |= __get_user(regs->u_regs[UREG_G4], (&(*grp)[MC_G4])); in sparc64_set_context()
88 err |= __get_user(regs->u_regs[UREG_G5], (&(*grp)[MC_G5])); in sparc64_set_context()
89 err |= __get_user(regs->u_regs[UREG_G6], (&(*grp)[MC_G6])); in sparc64_set_context()
93 err |= __get_user(regs->u_regs[UREG_I0], (&(*grp)[MC_O0])); in sparc64_set_context()
94 err |= __get_user(regs->u_regs[UREG_I1], (&(*grp)[MC_O1])); in sparc64_set_context()
[all …]
Dprocess_32.c118 struct reg_window32 *rw = (struct reg_window32 *) r->u_regs[14]; in show_regs()
126 r->u_regs[0], r->u_regs[1], r->u_regs[2], r->u_regs[3], in show_regs()
127 r->u_regs[4], r->u_regs[5], r->u_regs[6], r->u_regs[7]); in show_regs()
129 r->u_regs[8], r->u_regs[9], r->u_regs[10], r->u_regs[11], in show_regs()
130 r->u_regs[12], r->u_regs[13], r->u_regs[14], r->u_regs[15]); in show_regs()
131 printk("RPC: <%pS>\n", (void *) r->u_regs[15]); in show_regs()
305 childregs->u_regs[UREG_G1] = (unsigned long) args->fn;
306 childregs->u_regs[UREG_G2] = (unsigned long) args->fn_arg;
313 childregs->u_regs[UREG_FP] = sp;
318 if (sp != regs->u_regs[UREG_FP]) {
[all …]
Dprocess_64.c112 rw = compat_ptr((unsigned int)regs->u_regs[14]); in show_regwindow32()
139 (regs->u_regs[14] + STACK_BIAS); in show_regwindow()
141 (regs->u_regs[14] + STACK_BIAS); in show_regwindow()
172 regs->u_regs[0], regs->u_regs[1], regs->u_regs[2], in show_regs()
173 regs->u_regs[3]); in show_regs()
175 regs->u_regs[4], regs->u_regs[5], regs->u_regs[6], in show_regs()
176 regs->u_regs[7]); in show_regs()
178 regs->u_regs[8], regs->u_regs[9], regs->u_regs[10], in show_regs()
179 regs->u_regs[11]); in show_regs()
181 regs->u_regs[12], regs->u_regs[13], regs->u_regs[14], in show_regs()
[all …]
Dsignal_32.c88 sf = (struct signal_frame __user *) regs->u_regs[UREG_FP]; in do_sigreturn()
94 if (get_user(ufp, &sf->info.si_regs.u_regs[UREG_FP])) in do_sigreturn()
151 sf = (struct rt_signal_frame __user *) regs->u_regs[UREG_FP]; in do_rt_sigreturn()
155 if (get_user(ufp, &sf->regs.u_regs[UREG_FP])) in do_rt_sigreturn()
168 err |= __copy_from_user(&regs->u_regs[UREG_G1], in do_rt_sigreturn()
169 &sf->regs.u_regs[UREG_G1], 15 * sizeof(u32)); in do_rt_sigreturn()
202 unsigned long sp = regs->u_regs[UREG_FP]; in get_sigframe()
279 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP], in setup_frame()
291 regs->u_regs[UREG_FP] = (unsigned long) sf; in setup_frame()
292 regs->u_regs[UREG_I0] = ksig->sig; in setup_frame()
[all …]
Dsignal32.c99 regs->u_regs[UREG_FP] &= 0x00000000ffffffffUL; in do_sigreturn32()
100 sf = (struct signal_frame32 __user *) regs->u_regs[UREG_FP]; in do_sigreturn32()
106 if (get_user(ufp, &sf->info.si_regs.u_regs[UREG_FP])) in do_sigreturn32()
131 err |= __get_user(regs->u_regs[i], &sf->info.si_regs.u_regs[i]); in do_sigreturn32()
138 err |= __get_user(((u32 *)regs->u_regs)[2*i], &sf->v8plus.g_upper[i]); in do_sigreturn32()
187 regs->u_regs[UREG_FP] &= 0x00000000ffffffffUL; in do_rt_sigreturn32()
188 sf = (struct rt_signal_frame32 __user *) regs->u_regs[UREG_FP]; in do_rt_sigreturn32()
194 if (get_user(ufp, &sf->regs.u_regs[UREG_FP])) in do_rt_sigreturn32()
219 err |= __get_user(regs->u_regs[i], &sf->regs.u_regs[i]); in do_rt_sigreturn32()
226 err |= __get_user(((u32 *)regs->u_regs)[2*i], &sf->v8plus.g_upper[i]); in do_rt_sigreturn32()
[all …]
Dptrace_64.c194 unsigned long rw_addr = regs->u_regs[UREG_I6]; in regwindow64_get()
219 unsigned long rw_addr = regs->u_regs[UREG_I6]; in regwindow64_set()
256 membuf_write(&to, regs->u_regs, 16 * sizeof(u64)); in genregs64_get()
279 regs->u_regs, in genregs64_set()
451 membuf_write(&to, regs->u_regs + 1, 15 * sizeof(u64)); in getregs64_get()
471 regs->u_regs + 1, in setregs64_set()
544 membuf_store(&to, (u32)regs->u_regs[i]); in genregs32_get()
547 if (get_from_target(target, regs->u_regs[UREG_I6], in genregs32_get()
577 regs->u_regs[pos++] = *k++; in genregs32_set()
579 reg_window = (compat_ulong_t __user *) regs->u_regs[UREG_I6]; in genregs32_set()
[all …]
Dunaligned_32.c99 return (!reg ? 0 : regs->u_regs[reg]); in fetch_reg()
102 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in fetch_reg()
112 return (!reg ? 0 : regs->u_regs[reg]); in safe_fetch_reg()
115 win = (struct reg_window32 __user *) regs->u_regs[UREG_FP]; in safe_fetch_reg()
131 return &regs->u_regs[reg]; in fetch_reg_addr()
132 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in fetch_reg_addr()
Duprobes.c131 slot = &regs->u_regs[UREG_I7]; in retpc_fixup()
138 slot = &regs->u_regs[rd]; in retpc_fixup()
140 unsigned long fp = regs->u_regs[UREG_FP]; in retpc_fixup()
313 unsigned long orig_ret_vaddr = regs->u_regs[UREG_I7]; in arch_uretprobe_hijack_return_addr()
315 regs->u_regs[UREG_I7] = trampoline_vaddr-8; in arch_uretprobe_hijack_return_addr()
Dkgdb_32.c26 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs()
28 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in pt_regs_to_gdb_regs()
88 regs->u_regs[UREG_G1 + i] = gdb_regs[GDB_G1 + i]; in gdb_regs_to_pt_regs()
103 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in gdb_regs_to_pt_regs()
Dptrace_32.c51 unsigned long reg_window = regs->u_regs[UREG_I6]; in regwindow32_get()
69 unsigned long reg_window = regs->u_regs[UREG_I6]; in regwindow32_set()
93 membuf_write(&to, regs->u_regs, 16 * sizeof(u32)); in genregs32_get()
120 regs->u_regs, in genregs32_set()
257 return membuf_write(&to, regs->u_regs + 1, 15 * sizeof(u32)); in getregs_get()
283 regs->u_regs + 1, in setregs_set()
363 unsigned long addr2 = current->thread.kregs->u_regs[UREG_I4]; in arch_ptrace()
Dkgdb_64.c26 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs()
28 win = (struct reg_window *) (regs->u_regs[UREG_FP] + STACK_BIAS); in pt_regs_to_gdb_regs()
94 regs->u_regs[UREG_G1 + i] = gdb_regs[GDB_G1 + i]; in gdb_regs_to_pt_regs()
109 win = (struct reg_window *) (regs->u_regs[UREG_FP] + STACK_BIAS); in gdb_regs_to_pt_regs()
Dkprobes.c243 slot = &regs->u_regs[UREG_I7]; in retpc_fixup()
251 slot = &regs->u_regs[rd]; in retpc_fixup()
258 (regs->u_regs[UREG_FP] + STACK_BIAS); in retpc_fixup()
438 ri->ret_addr = (kprobe_opcode_t *)(regs->u_regs[UREG_RETPC] + 8); in arch_prepare_kretprobe()
442 regs->u_regs[UREG_RETPC] = in arch_prepare_kretprobe()
Dunaligned_64.c125 return (!reg ? 0 : regs->u_regs[reg]); in fetch_reg()
127 fp = regs->u_regs[UREG_FP]; in fetch_reg()
150 return &regs->u_regs[reg]; in fetch_reg_addr()
152 fp = regs->u_regs[UREG_FP]; in fetch_reg_addr()
413 regs->u_regs[rd] = ret; in handle_popc()
415 unsigned long fp = regs->u_regs[UREG_FP]; in handle_popc()
584 } else if (!test_thread_64bit_stack(regs->u_regs[UREG_FP])) { in handle_ld_nf()
Dsys_sparc_32.c84 current_pt_regs()->u_regs[UREG_I1] = fd[1]; in SYSCALL_DEFINE0()
138 current->comm, task_pid_nr(current), (int)regs->u_regs[1]); in SYSCALL_DEFINE0()
/Linux-v6.6/arch/sparc/include/asm/
Dsyscall.h25 return (syscall_p ? regs->u_regs[UREG_G1] : -1L); in syscall_get_nr()
71 long val = regs->u_regs[UREG_I0]; in syscall_get_error()
79 long val = regs->u_regs[UREG_I0]; in syscall_get_return_value()
90 regs->u_regs[UREG_I0] = -error; in syscall_set_return_value()
93 regs->u_regs[UREG_I0] = val; in syscall_set_return_value()
111 unsigned long val = regs->u_regs[UREG_I0 + j]; in syscall_get_arguments()
Dptrace.h70 #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])
78 return regs->u_regs[UREG_I0]; in regs_return_value()
114 return regs->u_regs[UREG_I6]; in kernel_stack_pointer()
145 #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])
Dperf_event.h25 (regs)->u_regs[UREG_I6] = _fp; \
26 (regs)->u_regs[UREG_I7] = _i7; \
Dprocessor_64.h128 "i" ((const unsigned long)(&((struct pt_regs *)0)->u_regs[0]))); \
172 "i" ((const unsigned long)(&((struct pt_regs *)0)->u_regs[0]))); \
183 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->u_regs[UREG_FP])
Dsigcontext.h44 unsigned int u_regs[16]; /* globals and ins */ member
76 unsigned long u_regs[16]; /* globals and ins */ member
Dprocessor_32.h79 "i" ((const unsigned long)(&((struct pt_regs *)0)->u_regs[0])) in start_thread()
87 #define KSTK_ESP(tsk) ((tsk)->thread.kregs->u_regs[UREG_FP])
/Linux-v6.6/arch/sparc/include/uapi/asm/
Dptrace.h23 unsigned long u_regs[16]; /* globals and ins */ member
48 unsigned int u_regs[16]; /* globals and ins */ member
109 unsigned long u_regs[16]; /* globals and ins */ member
/Linux-v6.6/arch/sparc/mm/
Dfault_64.c65 printk(KERN_CRIT "OOPS: RPC [%016lx]\n", regs->u_regs[15]); in bad_kernel_pc()
66 printk("OOPS: RPC <%pS>\n", (void *) regs->u_regs[15]); in bad_kernel_pc()
152 (void *)regs->tpc, (void *)regs->u_regs[UREG_I7], in show_signal_msg()
153 (void *)regs->u_regs[UREG_FP], code); in show_signal_msg()
Dfault_32.c71 (void *)regs->pc, (void *)regs->u_regs[UREG_I7], in show_signal_msg()
72 (void *)regs->u_regs[UREG_FP], code); in show_signal_msg()
376 sp = regs->u_regs[UREG_FP]; in window_ret_fault()
/Linux-v6.6/arch/sparc/math-emu/
Dmath_64.c323 XR = regs->u_regs[freg]; in do_mathemu()
324 else if (!test_thread_64bit_stack(regs->u_regs[UREG_FP])) { in do_mathemu()
327 win32 = (struct reg_window32 __user *)((unsigned long)((u32)regs->u_regs[UREG_FP])); in do_mathemu()
332 win = (struct reg_window __user *)(regs->u_regs[UREG_FP] + STACK_BIAS); in do_mathemu()

12