/arch/sh/kernel/ |
D | process_64.c | 38 void show_regs(struct pt_regs *regs) in show_regs() argument 45 ah = (regs->pc) >> 32; in show_regs() 46 al = (regs->pc) & 0xffffffff; in show_regs() 47 bh = (regs->regs[18]) >> 32; in show_regs() 48 bl = (regs->regs[18]) & 0xffffffff; in show_regs() 49 ch = (regs->regs[15]) >> 32; in show_regs() 50 cl = (regs->regs[15]) & 0xffffffff; in show_regs() 54 ah = (regs->sr) >> 32; in show_regs() 55 al = (regs->sr) & 0xffffffff; in show_regs() 67 ah = (regs->regs[0]) >> 32; in show_regs() [all …]
|
D | signal_64.c | 34 #define REF_REG_RET regs->regs[REG_RET] 35 #define REF_REG_SP regs->regs[REG_SP] 36 #define DEREF_REG_PR regs->regs[REG_PR] 41 handle_signal(struct ksignal *ksig, struct pt_regs *regs); 44 handle_syscall_restart(struct pt_regs *regs, struct sigaction *sa) in handle_syscall_restart() argument 47 if (regs->syscall_nr < 0) in handle_syscall_restart() 51 switch (regs->regs[REG_RET]) { in handle_syscall_restart() 55 regs->regs[REG_RET] = -EINTR; in handle_syscall_restart() 64 regs->regs[REG_RET] = regs->syscall_nr; in handle_syscall_restart() 65 regs->pc -= 4; in handle_syscall_restart() [all …]
|
D | process_32.c | 31 void show_regs(struct pt_regs * regs) in show_regs() argument 36 printk("PC is at %pS\n", (void *)instruction_pointer(regs)); in show_regs() 37 printk("PR is at %pS\n", (void *)regs->pr); in show_regs() 40 regs->pc, regs->regs[15], regs->sr); in show_regs() 48 regs->regs[0],regs->regs[1], in show_regs() 49 regs->regs[2],regs->regs[3]); in show_regs() 51 regs->regs[4],regs->regs[5], in show_regs() 52 regs->regs[6],regs->regs[7]); in show_regs() 54 regs->regs[8],regs->regs[9], in show_regs() 55 regs->regs[10],regs->regs[11]); in show_regs() [all …]
|
D | signal_32.c | 91 struct pt_regs *regs) in save_sigcontext_fpu() argument 109 unlazy_fpu(tsk, regs); in save_sigcontext_fpu() 116 restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *r0_p) in restore_sigcontext() argument 120 #define COPY(x) err |= __get_user(regs->x, &sc->sc_##x) in restore_sigcontext() 121 COPY(regs[1]); in restore_sigcontext() 122 COPY(regs[2]); COPY(regs[3]); in restore_sigcontext() 123 COPY(regs[4]); COPY(regs[5]); in restore_sigcontext() 124 COPY(regs[6]); COPY(regs[7]); in restore_sigcontext() 125 COPY(regs[8]); COPY(regs[9]); in restore_sigcontext() 126 COPY(regs[10]); COPY(regs[11]); in restore_sigcontext() [all …]
|
/arch/hexagon/kernel/ |
D | vm_events.c | 22 void show_regs(struct pt_regs *regs) in show_regs() argument 27 regs->restart_r0, regs->syscall_nr); in show_regs() 28 printk(KERN_EMERG "preds: \t\t0x%08lx\n", regs->preds); in show_regs() 30 regs->lc0, regs->sa0, regs->m0); in show_regs() 32 regs->lc1, regs->sa1, regs->m1); in show_regs() 34 regs->gp, regs->ugp, regs->usr); in show_regs() 36 regs->cs0, regs->cs1); in show_regs() 37 printk(KERN_EMERG "r0: \t0x%08lx %08lx %08lx %08lx\n", regs->r00, in show_regs() 38 regs->r01, in show_regs() 39 regs->r02, in show_regs() [all …]
|
D | traps.c | 146 struct pt_regs *regs = (struct pt_regs *) (((void *)fp) in do_show_stack() local 149 if (regs->syscall_nr != -1) { in do_show_stack() 151 regs->syscall_nr); in do_show_stack() 153 pt_psp(regs), pt_elr(regs)); in do_show_stack() 159 ex_name(pt_cause(regs)), pt_cause(regs), in do_show_stack() 160 pt_badva(regs)); in do_show_stack() 163 newfp = (unsigned long *) regs->r30; in do_show_stack() 164 ip = pt_elr(regs); in do_show_stack() 187 int die(const char *str, struct pt_regs *regs, long err) in die() argument 204 if (notify_die(DIE_OOPS, str, regs, err, pt_cause(regs), SIGSEGV) == in die() [all …]
|
/arch/csky/abiv2/inc/abi/ |
D | elf.h | 7 #define ELF_CORE_COPY_REGS(pr_reg, regs) do { \ argument 8 pr_reg[0] = regs->pc; \ 9 pr_reg[1] = regs->a1; \ 10 pr_reg[2] = regs->a0; \ 11 pr_reg[3] = regs->sr; \ 12 pr_reg[4] = regs->a2; \ 13 pr_reg[5] = regs->a3; \ 14 pr_reg[6] = regs->regs[0]; \ 15 pr_reg[7] = regs->regs[1]; \ 16 pr_reg[8] = regs->regs[2]; \ [all …]
|
/arch/openrisc/kernel/ |
D | traps.c | 65 void show_registers(struct pt_regs *regs) in show_registers() argument 71 esp = (unsigned long)(regs->sp); in show_registers() 72 if (user_mode(regs)) in show_registers() 77 smp_processor_id(), regs->pc, regs->sr, regs->sp); in show_registers() 79 0L, regs->gpr[1], regs->gpr[2], regs->gpr[3]); in show_registers() 81 regs->gpr[4], regs->gpr[5], regs->gpr[6], regs->gpr[7]); in show_registers() 83 regs->gpr[8], regs->gpr[9], regs->gpr[10], regs->gpr[11]); in show_registers() 85 regs->gpr[12], regs->gpr[13], regs->gpr[14], regs->gpr[15]); in show_registers() 87 regs->gpr[16], regs->gpr[17], regs->gpr[18], regs->gpr[19]); in show_registers() 89 regs->gpr[20], regs->gpr[21], regs->gpr[22], regs->gpr[23]); in show_registers() [all …]
|
/arch/sh/include/asm/ |
D | syscall_32.h | 13 struct pt_regs *regs) in syscall_get_nr() argument 15 return (regs->tra >= 0) ? regs->regs[3] : -1L; in syscall_get_nr() 19 struct pt_regs *regs) in syscall_rollback() argument 28 struct pt_regs *regs) in syscall_get_error() argument 30 return IS_ERR_VALUE(regs->regs[0]) ? regs->regs[0] : 0; in syscall_get_error() 34 struct pt_regs *regs) in syscall_get_return_value() argument 36 return regs->regs[0]; in syscall_get_return_value() 40 struct pt_regs *regs, in syscall_set_return_value() argument 44 regs->regs[0] = -error; in syscall_set_return_value() 46 regs->regs[0] = val; in syscall_set_return_value() [all …]
|
D | elf.h | 138 do { _r->regs[0]=0; _r->regs[1]=0; _r->regs[2]=0; _r->regs[3]=0; \ 139 _r->regs[4]=0; _r->regs[5]=0; _r->regs[6]=0; _r->regs[7]=0; \ 140 _r->regs[8]=0; _r->regs[9]=0; _r->regs[10]=0; _r->regs[11]=0; \ 141 _r->regs[12]=0; _r->regs[13]=0; _r->regs[14]=0; _r->regs[15]=0; \ 142 _r->regs[16]=0; _r->regs[17]=0; _r->regs[18]=0; _r->regs[19]=0; \ 143 _r->regs[20]=0; _r->regs[21]=0; _r->regs[22]=0; _r->regs[23]=0; \ 144 _r->regs[24]=0; _r->regs[25]=0; _r->regs[26]=0; _r->regs[27]=0; \ 145 _r->regs[28]=0; _r->regs[29]=0; _r->regs[30]=0; _r->regs[31]=0; \ 146 _r->regs[32]=0; _r->regs[33]=0; _r->regs[34]=0; _r->regs[35]=0; \ 147 _r->regs[36]=0; _r->regs[37]=0; _r->regs[38]=0; _r->regs[39]=0; \ [all …]
|
/arch/arm64/include/asm/ |
D | ptrace.h | 109 #define compat_usr(x) regs[(x)] 110 #define compat_fp regs[11] 111 #define compat_sp regs[13] 112 #define compat_lr regs[14] 113 #define compat_sp_hyp regs[15] 114 #define compat_lr_irq regs[16] 115 #define compat_sp_irq regs[17] 116 #define compat_lr_svc regs[18] 117 #define compat_sp_svc regs[19] 118 #define compat_lr_abt regs[20] [all …]
|
/arch/csky/abiv1/inc/abi/ |
D | elf.h | 6 #define ELF_CORE_COPY_REGS(pr_reg, regs) do { \ argument 7 pr_reg[0] = regs->pc; \ 8 pr_reg[1] = regs->regs[9]; \ 9 pr_reg[2] = regs->usp; \ 10 pr_reg[3] = regs->sr; \ 11 pr_reg[4] = regs->a0; \ 12 pr_reg[5] = regs->a1; \ 13 pr_reg[6] = regs->a2; \ 14 pr_reg[7] = regs->a3; \ 15 pr_reg[8] = regs->regs[0]; \ [all …]
|
/arch/unicore32/kernel/ |
D | signal.c | 52 static int restore_sigframe(struct pt_regs *regs, struct sigframe __user *sf) in restore_sigframe() argument 61 err |= __get_user(regs->UCreg_00, &sf->uc.uc_mcontext.regs.UCreg_00); in restore_sigframe() 62 err |= __get_user(regs->UCreg_01, &sf->uc.uc_mcontext.regs.UCreg_01); in restore_sigframe() 63 err |= __get_user(regs->UCreg_02, &sf->uc.uc_mcontext.regs.UCreg_02); in restore_sigframe() 64 err |= __get_user(regs->UCreg_03, &sf->uc.uc_mcontext.regs.UCreg_03); in restore_sigframe() 65 err |= __get_user(regs->UCreg_04, &sf->uc.uc_mcontext.regs.UCreg_04); in restore_sigframe() 66 err |= __get_user(regs->UCreg_05, &sf->uc.uc_mcontext.regs.UCreg_05); in restore_sigframe() 67 err |= __get_user(regs->UCreg_06, &sf->uc.uc_mcontext.regs.UCreg_06); in restore_sigframe() 68 err |= __get_user(regs->UCreg_07, &sf->uc.uc_mcontext.regs.UCreg_07); in restore_sigframe() 69 err |= __get_user(regs->UCreg_08, &sf->uc.uc_mcontext.regs.UCreg_08); in restore_sigframe() [all …]
|
/arch/parisc/kernel/ |
D | kgdb.c | 27 struct pt_regs *regs = args->regs; in __kgdb_notify() local 29 if (kgdb_handle_exception(1, args->signr, cmd, regs)) in __kgdb_notify() 62 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument 68 memcpy(gr->gpr, regs->gr, sizeof(gr->gpr)); in pt_regs_to_gdb_regs() 69 memcpy(gr->fr, regs->fr, sizeof(gr->fr)); in pt_regs_to_gdb_regs() 71 gr->sr0 = regs->sr[0]; in pt_regs_to_gdb_regs() 72 gr->sr1 = regs->sr[1]; in pt_regs_to_gdb_regs() 73 gr->sr2 = regs->sr[2]; in pt_regs_to_gdb_regs() 74 gr->sr3 = regs->sr[3]; in pt_regs_to_gdb_regs() 75 gr->sr4 = regs->sr[4]; in pt_regs_to_gdb_regs() [all …]
|
D | traps.c | 52 struct pt_regs *regs); 78 static void print_gr(char *level, struct pt_regs *regs) in print_gr() argument 85 printbinary(buf, regs->gr[0], 32); in print_gr() 89 PRINTREGS(level, regs->gr, "r", RFMT, i); in print_gr() 92 static void print_fr(char *level, struct pt_regs *regs) in print_fr() argument 116 PRINTREGS(level, regs->fr, "fr", FFMT, i); in print_fr() 119 void show_regs(struct pt_regs *regs) in show_regs() argument 125 user = user_mode(regs); in show_regs() 130 print_gr(level, regs); in show_regs() 133 PRINTREGS(level, regs->sr, "sr", RFMT, i); in show_regs() [all …]
|
/arch/arm/include/asm/ |
D | ptrace.h | 20 struct pt_regs regs; member 25 #define to_svc_pt_regs(r) container_of(r, struct svc_pt_regs, regs) 27 #define user_mode(regs) \ argument 28 (((regs)->ARM_cpsr & 0xf) == 0) 31 #define thumb_mode(regs) \ argument 32 (((regs)->ARM_cpsr & PSR_T_BIT)) 34 #define thumb_mode(regs) (0) argument 38 #define isa_mode(regs) \ argument 39 ((((regs)->ARM_cpsr & PSR_J_BIT) >> (__ffs(PSR_J_BIT) - 1)) | \ 40 (((regs)->ARM_cpsr & PSR_T_BIT) >> (__ffs(PSR_T_BIT)))) [all …]
|
/arch/arc/kernel/ |
D | signal.c | 65 stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs, in stash_usr_regs() argument 71 uregs.scratch.bta = regs->bta; in stash_usr_regs() 72 uregs.scratch.lp_start = regs->lp_start; in stash_usr_regs() 73 uregs.scratch.lp_end = regs->lp_end; in stash_usr_regs() 74 uregs.scratch.lp_count = regs->lp_count; in stash_usr_regs() 75 uregs.scratch.status32 = regs->status32; in stash_usr_regs() 76 uregs.scratch.ret = regs->ret; in stash_usr_regs() 77 uregs.scratch.blink = regs->blink; in stash_usr_regs() 78 uregs.scratch.fp = regs->fp; in stash_usr_regs() 79 uregs.scratch.gp = regs->r26; in stash_usr_regs() [all …]
|
/arch/x86/entry/ |
D | common.c | 51 static void do_audit_syscall_entry(struct pt_regs *regs, u32 arch) in do_audit_syscall_entry() argument 55 audit_syscall_entry(regs->orig_ax, regs->di, in do_audit_syscall_entry() 56 regs->si, regs->dx, regs->r10); in do_audit_syscall_entry() 60 audit_syscall_entry(regs->orig_ax, regs->bx, in do_audit_syscall_entry() 61 regs->cx, regs->dx, regs->si); in do_audit_syscall_entry() 69 static long syscall_trace_enter(struct pt_regs *regs) in syscall_trace_enter() argument 78 BUG_ON(regs != task_pt_regs(current)); in syscall_trace_enter() 83 ret = tracehook_report_syscall_entry(regs); in syscall_trace_enter() 96 sd.nr = regs->orig_ax; in syscall_trace_enter() 97 sd.instruction_pointer = regs->ip; in syscall_trace_enter() [all …]
|
/arch/x86/um/asm/ |
D | elf.h | 36 #define ELF_PLAT_INIT(regs, load_addr) do { \ argument 37 PT_REGS_BX(regs) = 0; \ 38 PT_REGS_CX(regs) = 0; \ 39 PT_REGS_DX(regs) = 0; \ 40 PT_REGS_SI(regs) = 0; \ 41 PT_REGS_DI(regs) = 0; \ 42 PT_REGS_BP(regs) = 0; \ 43 PT_REGS_AX(regs) = 0; \ 48 #define ELF_CORE_COPY_REGS(pr_reg, regs) do { \ argument 49 pr_reg[0] = PT_REGS_BX(regs); \ [all …]
|
/arch/mips/include/asm/ |
D | branch.h | 16 extern int __isa_exception_epc(struct pt_regs *regs); 17 extern int __compute_return_epc(struct pt_regs *regs); 18 extern int __compute_return_epc_for_insn(struct pt_regs *regs, 20 extern int __microMIPS_compute_return_epc(struct pt_regs *regs); 21 extern int __MIPS16e_compute_return_epc(struct pt_regs *regs); 30 extern int __mm_isBranchInstr(struct pt_regs *regs, 33 static inline int mm_isBranchInstr(struct pt_regs *regs, in mm_isBranchInstr() argument 39 return __mm_isBranchInstr(regs, dec_insn, contpc); in mm_isBranchInstr() 42 static inline int delay_slot(struct pt_regs *regs) in delay_slot() argument 44 return regs->cp0_cause & CAUSEF_BD; in delay_slot() [all …]
|
D | syscall.h | 30 struct pt_regs *regs) in mips_syscall_is_indirect() argument 35 (regs->regs[2] == __NR_syscall); in mips_syscall_is_indirect() 39 struct pt_regs *regs) in syscall_get_nr() argument 45 struct pt_regs *regs) in mips_syscall_update_nr() argument 51 if (mips_syscall_is_indirect(task, regs)) in mips_syscall_update_nr() 52 task_thread_info(task)->syscall = regs->regs[4]; in mips_syscall_update_nr() 54 task_thread_info(task)->syscall = regs->regs[2]; in mips_syscall_update_nr() 58 struct task_struct *task, struct pt_regs *regs, unsigned int n) in mips_get_syscall_arg() argument 60 unsigned long usp __maybe_unused = regs->regs[29]; in mips_get_syscall_arg() 64 *arg = regs->regs[4 + n]; in mips_get_syscall_arg() [all …]
|
D | ptrace.h | 35 unsigned long regs[32]; member 54 static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) in kernel_stack_pointer() argument 56 return regs->regs[31]; in kernel_stack_pointer() 59 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set() argument 62 regs->cp0_epc = val; in instruction_pointer_set() 78 static inline unsigned long regs_get_register(struct pt_regs *regs, in regs_get_register() argument 84 return *(unsigned long *)((unsigned long)regs + offset); in regs_get_register() 95 static inline int regs_within_kernel_stack(struct pt_regs *regs, in regs_within_kernel_stack() argument 99 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack() 111 static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, in regs_get_kernel_stack_nth() argument [all …]
|
/arch/nios2/include/asm/ |
D | syscall.h | 13 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument 15 return regs->r2; in syscall_get_nr() 19 struct pt_regs *regs) in syscall_rollback() argument 21 regs->r2 = regs->orig_r2; in syscall_rollback() 22 regs->r7 = regs->orig_r7; in syscall_rollback() 26 struct pt_regs *regs) in syscall_get_error() argument 28 return regs->r7 ? regs->r2 : 0; in syscall_get_error() 32 struct pt_regs *regs) in syscall_get_return_value() argument 34 return regs->r2; in syscall_get_return_value() 38 struct pt_regs *regs, int error, long val) in syscall_set_return_value() argument [all …]
|
/arch/powerpc/kernel/ |
D | traps.c | 73 int (*__debugger)(struct pt_regs *regs) __read_mostly; 74 int (*__debugger_ipi)(struct pt_regs *regs) __read_mostly; 75 int (*__debugger_bpt)(struct pt_regs *regs) __read_mostly; 76 int (*__debugger_sstep)(struct pt_regs *regs) __read_mostly; 77 int (*__debugger_iabr_match)(struct pt_regs *regs) __read_mostly; 78 int (*__debugger_break_match)(struct pt_regs *regs) __read_mostly; 79 int (*__debugger_fault_handler)(struct pt_regs *regs) __read_mostly; 181 static unsigned long oops_begin(struct pt_regs *regs) in oops_begin() argument 207 static void oops_end(unsigned long flags, struct pt_regs *regs, in oops_end() argument 225 if (TRAP(regs) == 0x100) in oops_end() [all …]
|
/arch/powerpc/include/asm/ |
D | ptrace.h | 114 static inline unsigned long instruction_pointer(struct pt_regs *regs) in instruction_pointer() argument 116 return regs->nip; in instruction_pointer() 119 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set() argument 122 regs->nip = val; in instruction_pointer_set() 125 static inline unsigned long user_stack_pointer(struct pt_regs *regs) in user_stack_pointer() argument 127 return regs->gpr[1]; in user_stack_pointer() 130 static inline unsigned long frame_pointer(struct pt_regs *regs) in frame_pointer() argument 136 extern unsigned long profile_pc(struct pt_regs *regs); 138 #define profile_pc(regs) instruction_pointer(regs) argument 141 #define kernel_stack_pointer(regs) ((regs)->gpr[1]) argument [all …]
|