/Linux-v6.6/arch/sparc/kernel/ |
D | process.c | 20 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 …]
|
D | signal_64.c | 44 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 …]
|
D | process_32.c | 118 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 …]
|
D | process_64.c | 112 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 …]
|
D | signal_32.c | 88 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(®s->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 …]
|
D | signal32.c | 99 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 …]
|
D | ptrace_64.c | 194 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 …]
|
D | unaligned_32.c | 99 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 ®s->u_regs[reg]; in fetch_reg_addr() 132 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in fetch_reg_addr()
|
D | uprobes.c | 131 slot = ®s->u_regs[UREG_I7]; in retpc_fixup() 138 slot = ®s->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()
|
D | kgdb_32.c | 26 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()
|
D | ptrace_32.c | 51 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()
|
D | kgdb_64.c | 26 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()
|
D | kprobes.c | 243 slot = ®s->u_regs[UREG_I7]; in retpc_fixup() 251 slot = ®s->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()
|
D | unaligned_64.c | 125 return (!reg ? 0 : regs->u_regs[reg]); in fetch_reg() 127 fp = regs->u_regs[UREG_FP]; in fetch_reg() 150 return ®s->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()
|
D | sys_sparc_32.c | 84 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/ |
D | syscall.h | 25 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()
|
D | ptrace.h | 70 #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])
|
D | perf_event.h | 25 (regs)->u_regs[UREG_I6] = _fp; \ 26 (regs)->u_regs[UREG_I7] = _i7; \
|
D | processor_64.h | 128 "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])
|
D | sigcontext.h | 44 unsigned int u_regs[16]; /* globals and ins */ member 76 unsigned long u_regs[16]; /* globals and ins */ member
|
D | processor_32.h | 79 "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/ |
D | ptrace.h | 23 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/ |
D | fault_64.c | 65 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()
|
D | fault_32.c | 71 (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/ |
D | math_64.c | 323 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()
|