/arch/sh/kernel/ |
D | process_64.c | 41 void show_regs(struct pt_regs *regs) in show_regs() argument 48 ah = (regs->pc) >> 32; in show_regs() 49 al = (regs->pc) & 0xffffffff; in show_regs() 50 bh = (regs->regs[18]) >> 32; in show_regs() 51 bl = (regs->regs[18]) & 0xffffffff; in show_regs() 52 ch = (regs->regs[15]) >> 32; in show_regs() 53 cl = (regs->regs[15]) & 0xffffffff; in show_regs() 57 ah = (regs->sr) >> 32; in show_regs() 58 al = (regs->sr) & 0xffffffff; in show_regs() 70 ah = (regs->regs[0]) >> 32; in show_regs() [all …]
|
D | signal_64.c | 37 #define REF_REG_RET regs->regs[REG_RET] 38 #define REF_REG_SP regs->regs[REG_SP] 39 #define DEREF_REG_PR regs->regs[REG_PR] 44 handle_signal(struct ksignal *ksig, struct pt_regs *regs); 47 handle_syscall_restart(struct pt_regs *regs, struct sigaction *sa) in handle_syscall_restart() argument 50 if (regs->syscall_nr < 0) in handle_syscall_restart() 54 switch (regs->regs[REG_RET]) { in handle_syscall_restart() 58 regs->regs[REG_RET] = -EINTR; in handle_syscall_restart() 67 regs->regs[REG_RET] = regs->syscall_nr; in handle_syscall_restart() 68 regs->pc -= 4; in handle_syscall_restart() [all …]
|
D | process_32.c | 35 void show_regs(struct pt_regs * regs) in show_regs() argument 40 print_symbol("PC is at %s\n", instruction_pointer(regs)); in show_regs() 41 print_symbol("PR is at %s\n", regs->pr); in show_regs() 44 regs->pc, regs->regs[15], regs->sr); in show_regs() 52 regs->regs[0],regs->regs[1], in show_regs() 53 regs->regs[2],regs->regs[3]); in show_regs() 55 regs->regs[4],regs->regs[5], in show_regs() 56 regs->regs[6],regs->regs[7]); in show_regs() 58 regs->regs[8],regs->regs[9], in show_regs() 59 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 | 35 void show_regs(struct pt_regs *regs) in show_regs() argument 40 regs->restart_r0, regs->syscall_nr); in show_regs() 41 printk(KERN_EMERG "preds: \t\t0x%08lx\n", regs->preds); in show_regs() 43 regs->lc0, regs->sa0, regs->m0); in show_regs() 45 regs->lc1, regs->sa1, regs->m1); in show_regs() 47 regs->gp, regs->ugp, regs->usr); in show_regs() 49 regs->cs0, regs->cs1); in show_regs() 50 printk(KERN_EMERG "r0: \t0x%08lx %08lx %08lx %08lx\n", regs->r00, in show_regs() 51 regs->r01, in show_regs() 52 regs->r02, in show_regs() [all …]
|
D | traps.c | 159 struct pt_regs *regs = (struct pt_regs *) (((void *)fp) in do_show_stack() local 162 if (regs->syscall_nr != -1) { in do_show_stack() 164 regs->syscall_nr); in do_show_stack() 166 pt_psp(regs), pt_elr(regs)); in do_show_stack() 172 ex_name(pt_cause(regs)), pt_cause(regs), in do_show_stack() 173 pt_badva(regs)); in do_show_stack() 176 newfp = (unsigned long *) regs->r30; in do_show_stack() 177 ip = pt_elr(regs); in do_show_stack() 200 int die(const char *str, struct pt_regs *regs, long err) in die() argument 217 if (notify_die(DIE_OOPS, str, regs, err, pt_cause(regs), SIGSEGV) == in die() [all …]
|
/arch/score/kernel/ |
D | traps.c | 123 void show_regs(struct pt_regs *regs) in show_regs() argument 128 regs->regs[0], regs->regs[1], regs->regs[2], regs->regs[3], in show_regs() 129 regs->regs[4], regs->regs[5], regs->regs[6], regs->regs[7]); in show_regs() 131 regs->regs[8], regs->regs[9], regs->regs[10], regs->regs[11], in show_regs() 132 regs->regs[12], regs->regs[13], regs->regs[14], regs->regs[15]); in show_regs() 134 regs->regs[16], regs->regs[17], regs->regs[18], regs->regs[19], in show_regs() 135 regs->regs[20], regs->regs[21], regs->regs[22], regs->regs[23]); in show_regs() 137 regs->regs[24], regs->regs[25], regs->regs[26], regs->regs[27], in show_regs() 138 regs->regs[28], regs->regs[29], regs->regs[30], regs->regs[31]); in show_regs() 140 printk("CEH : %08lx\n", regs->ceh); in show_regs() [all …]
|
D | signal.c | 44 static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in setup_sigcontext() argument 49 reg = regs->cp0_epc; err |= __put_user(reg, &sc->sc_pc); in setup_sigcontext() 50 err |= __put_user(regs->cp0_psr, &sc->sc_psr); in setup_sigcontext() 51 err |= __put_user(regs->cp0_condition, &sc->sc_condition); in setup_sigcontext() 55 reg = regs->regs[i]; \ in setup_sigcontext() 70 reg = regs->ceh; err |= __put_user(reg, &sc->sc_mdceh); in setup_sigcontext() 71 reg = regs->cel; err |= __put_user(reg, &sc->sc_mdcel); in setup_sigcontext() 72 err |= __put_user(regs->cp0_ecr, &sc->sc_ecr); in setup_sigcontext() 73 err |= __put_user(regs->cp0_ema, &sc->sc_ema); in setup_sigcontext() 78 static int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in restore_sigcontext() argument [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/openrisc/kernel/ |
D | traps.c | 112 void show_registers(struct pt_regs *regs) in show_registers() argument 118 esp = (unsigned long)(®s->sp); in show_registers() 119 if (user_mode(regs)) in show_registers() 124 smp_processor_id(), regs->pc, regs->sr, regs->sp); in show_registers() 126 0L, regs->gpr[1], regs->gpr[2], regs->gpr[3]); in show_registers() 128 regs->gpr[4], regs->gpr[5], regs->gpr[6], regs->gpr[7]); in show_registers() 130 regs->gpr[8], regs->gpr[9], regs->gpr[10], regs->gpr[11]); in show_registers() 132 regs->gpr[12], regs->gpr[13], regs->gpr[14], regs->gpr[15]); in show_registers() 134 regs->gpr[16], regs->gpr[17], regs->gpr[18], regs->gpr[19]); in show_registers() 136 regs->gpr[20], regs->gpr[21], regs->gpr[22], regs->gpr[23]); in show_registers() [all …]
|
/arch/m32r/kernel/ |
D | align.c | 11 static int get_reg(struct pt_regs *regs, int nr) in get_reg() argument 16 val = *(unsigned long *)(®s->r0 + nr); in get_reg() 18 val = *(unsigned long *)(®s->r4 + (nr - 4)); in get_reg() 20 val = *(unsigned long *)(®s->r7 + (nr - 7)); in get_reg() 22 val = *(unsigned long *)(®s->fp + (nr - 13)); in get_reg() 27 static void set_reg(struct pt_regs *regs, int nr, int val) in set_reg() argument 30 *(unsigned long *)(®s->r0 + nr) = val; in set_reg() 32 *(unsigned long *)(®s->r4 + (nr - 4)) = val; in set_reg() 34 *(unsigned long *)(®s->r7 + (nr - 7)) = val; in set_reg() 36 *(unsigned long *)(®s->fp + (nr - 13)) = val; in set_reg() [all …]
|
/arch/arm64/include/asm/ |
D | ptrace.h | 125 #define compat_usr(x) regs[(x)] 126 #define compat_fp regs[11] 127 #define compat_sp regs[13] 128 #define compat_lr regs[14] 129 #define compat_sp_hyp regs[15] 130 #define compat_lr_irq regs[16] 131 #define compat_sp_irq regs[17] 132 #define compat_lr_svc regs[18] 133 #define compat_sp_svc regs[19] 134 #define compat_lr_abt regs[20] [all …]
|
/arch/unicore32/kernel/ |
D | signal.c | 55 static int restore_sigframe(struct pt_regs *regs, struct sigframe __user *sf) in restore_sigframe() argument 64 err |= __get_user(regs->UCreg_00, &sf->uc.uc_mcontext.regs.UCreg_00); in restore_sigframe() 65 err |= __get_user(regs->UCreg_01, &sf->uc.uc_mcontext.regs.UCreg_01); in restore_sigframe() 66 err |= __get_user(regs->UCreg_02, &sf->uc.uc_mcontext.regs.UCreg_02); in restore_sigframe() 67 err |= __get_user(regs->UCreg_03, &sf->uc.uc_mcontext.regs.UCreg_03); in restore_sigframe() 68 err |= __get_user(regs->UCreg_04, &sf->uc.uc_mcontext.regs.UCreg_04); in restore_sigframe() 69 err |= __get_user(regs->UCreg_05, &sf->uc.uc_mcontext.regs.UCreg_05); in restore_sigframe() 70 err |= __get_user(regs->UCreg_06, &sf->uc.uc_mcontext.regs.UCreg_06); in restore_sigframe() 71 err |= __get_user(regs->UCreg_07, &sf->uc.uc_mcontext.regs.UCreg_07); in restore_sigframe() 72 err |= __get_user(regs->UCreg_08, &sf->uc.uc_mcontext.regs.UCreg_08); in restore_sigframe() [all …]
|
/arch/arm/include/asm/ |
D | ptrace.h | 23 struct pt_regs regs; member 28 #define to_svc_pt_regs(r) container_of(r, struct svc_pt_regs, regs) 30 #define user_mode(regs) \ argument 31 (((regs)->ARM_cpsr & 0xf) == 0) 34 #define thumb_mode(regs) \ argument 35 (((regs)->ARM_cpsr & PSR_T_BIT)) 37 #define thumb_mode(regs) (0) argument 41 #define isa_mode(regs) \ argument 42 ((((regs)->ARM_cpsr & PSR_J_BIT) >> (__ffs(PSR_J_BIT) - 1)) | \ 43 (((regs)->ARM_cpsr & PSR_T_BIT) >> (__ffs(PSR_T_BIT)))) [all …]
|
/arch/arc/kernel/ |
D | signal.c | 68 stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs, in stash_usr_regs() argument 74 uregs.scratch.bta = regs->bta; in stash_usr_regs() 75 uregs.scratch.lp_start = regs->lp_start; in stash_usr_regs() 76 uregs.scratch.lp_end = regs->lp_end; in stash_usr_regs() 77 uregs.scratch.lp_count = regs->lp_count; in stash_usr_regs() 78 uregs.scratch.status32 = regs->status32; in stash_usr_regs() 79 uregs.scratch.ret = regs->ret; in stash_usr_regs() 80 uregs.scratch.blink = regs->blink; in stash_usr_regs() 81 uregs.scratch.fp = regs->fp; in stash_usr_regs() 82 uregs.scratch.gp = regs->r26; in stash_usr_regs() [all …]
|
/arch/x86/entry/ |
D | common.c | 50 static void do_audit_syscall_entry(struct pt_regs *regs, u32 arch) in do_audit_syscall_entry() argument 54 audit_syscall_entry(regs->orig_ax, regs->di, in do_audit_syscall_entry() 55 regs->si, regs->dx, regs->r10); in do_audit_syscall_entry() 59 audit_syscall_entry(regs->orig_ax, regs->bx, in do_audit_syscall_entry() 60 regs->cx, regs->dx, regs->si); in do_audit_syscall_entry() 68 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() 86 tracehook_report_syscall_entry(regs)) in syscall_trace_enter() 100 sd.nr = regs->orig_ax; in syscall_trace_enter() 101 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 | 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() 64 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set() argument 67 regs->cp0_epc = val; in instruction_pointer_set() 83 static inline unsigned long regs_get_register(struct pt_regs *regs, in regs_get_register() argument 89 return *(unsigned long *)((unsigned long)regs + offset); in regs_get_register() 100 static inline int regs_within_kernel_stack(struct pt_regs *regs, in regs_within_kernel_stack() argument 104 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack() 116 static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, in regs_get_kernel_stack_nth() argument [all …]
|
/arch/m68k/include/asm/ |
D | a.out-core.h | 24 static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump) in aout_dump_thread() argument 41 dump->u_ar0 = offsetof(struct user, regs); in aout_dump_thread() 42 sw = ((struct switch_stack *)regs) - 1; in aout_dump_thread() 43 dump->regs.d1 = regs->d1; in aout_dump_thread() 44 dump->regs.d2 = regs->d2; in aout_dump_thread() 45 dump->regs.d3 = regs->d3; in aout_dump_thread() 46 dump->regs.d4 = regs->d4; in aout_dump_thread() 47 dump->regs.d5 = regs->d5; in aout_dump_thread() 48 dump->regs.d6 = sw->d6; in aout_dump_thread() 49 dump->regs.d7 = sw->d7; in aout_dump_thread() [all …]
|
/arch/powerpc/kernel/ |
D | traps.c | 71 int (*__debugger)(struct pt_regs *regs) __read_mostly; 72 int (*__debugger_ipi)(struct pt_regs *regs) __read_mostly; 73 int (*__debugger_bpt)(struct pt_regs *regs) __read_mostly; 74 int (*__debugger_sstep)(struct pt_regs *regs) __read_mostly; 75 int (*__debugger_iabr_match)(struct pt_regs *regs) __read_mostly; 76 int (*__debugger_break_match)(struct pt_regs *regs) __read_mostly; 77 int (*__debugger_fault_handler)(struct pt_regs *regs) __read_mostly; 144 static unsigned long oops_begin(struct pt_regs *regs) in oops_begin() argument 170 static void oops_end(unsigned long flags, struct pt_regs *regs, in oops_end() argument 188 if (TRAP(regs) == 0x100) in oops_end() [all …]
|
/arch/x86/include/asm/ |
D | a.out-core.h | 27 static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump) in aout_dump_thread() argument 32 dump->start_stack = regs->sp & ~(PAGE_SIZE - 1); in aout_dump_thread() 44 dump->regs.bx = regs->bx; in aout_dump_thread() 45 dump->regs.cx = regs->cx; in aout_dump_thread() 46 dump->regs.dx = regs->dx; in aout_dump_thread() 47 dump->regs.si = regs->si; in aout_dump_thread() 48 dump->regs.di = regs->di; in aout_dump_thread() 49 dump->regs.bp = regs->bp; in aout_dump_thread() 50 dump->regs.ax = regs->ax; in aout_dump_thread() 51 dump->regs.ds = (u16)regs->ds; in aout_dump_thread() [all …]
|
/arch/parisc/kernel/ |
D | traps.c | 49 struct pt_regs *regs); 75 static void print_gr(char *level, struct pt_regs *regs) in print_gr() argument 82 printbinary(buf, regs->gr[0], 32); in print_gr() 86 PRINTREGS(level, regs->gr, "r", RFMT, i); in print_gr() 89 static void print_fr(char *level, struct pt_regs *regs) in print_fr() argument 113 PRINTREGS(level, regs->fr, "fr", FFMT, i); in print_fr() 116 void show_regs(struct pt_regs *regs) in show_regs() argument 122 user = user_mode(regs); in show_regs() 127 print_gr(level, regs); in show_regs() 130 PRINTREGS(level, regs->sr, "sr", RFMT, i); in show_regs() [all …]
|
/arch/powerpc/include/asm/ |
D | ptrace.h | 78 #define GET_IP(regs) ((regs)->nip) argument 79 #define GET_USP(regs) ((regs)->gpr[1]) argument 80 #define GET_FP(regs) (0) argument 81 #define SET_FP(regs, val) argument 84 extern unsigned long profile_pc(struct pt_regs *regs); 90 #define kernel_stack_pointer(regs) ((regs)->gpr[1]) argument 91 static inline int is_syscall_success(struct pt_regs *regs) in is_syscall_success() argument 93 return !(regs->ccr & 0x10000000); in is_syscall_success() 96 static inline long regs_return_value(struct pt_regs *regs) in regs_return_value() argument 98 if (is_syscall_success(regs)) in regs_return_value() [all …]
|