Home
last modified time | relevance | path

Searched refs:regs (Results 1 – 25 of 1129) sorted by relevance

12345678910>>...46

/arch/sh/kernel/
Dprocess_64.c37 void show_regs(struct pt_regs *regs) in show_regs() argument
43 ah = (regs->pc) >> 32; in show_regs()
44 al = (regs->pc) & 0xffffffff; in show_regs()
45 bh = (regs->regs[18]) >> 32; in show_regs()
46 bl = (regs->regs[18]) & 0xffffffff; in show_regs()
47 ch = (regs->regs[15]) >> 32; in show_regs()
48 cl = (regs->regs[15]) & 0xffffffff; in show_regs()
52 ah = (regs->sr) >> 32; in show_regs()
53 al = (regs->sr) & 0xffffffff; in show_regs()
65 ah = (regs->regs[0]) >> 32; in show_regs()
[all …]
Dprocess_32.c31 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 …]
Dsignal_64.c38 #define REF_REG_RET regs->regs[REG_RET]
39 #define REF_REG_SP regs->regs[REG_SP]
40 #define DEREF_REG_PR regs->regs[REG_PR]
48 sigset_t *oldset, struct pt_regs * regs);
51 handle_syscall_restart(struct pt_regs *regs, struct sigaction *sa) in handle_syscall_restart() argument
54 if (regs->syscall_nr < 0) in handle_syscall_restart()
58 switch (regs->regs[REG_RET]) { in handle_syscall_restart()
62 regs->regs[REG_RET] = -EINTR; in handle_syscall_restart()
71 regs->regs[REG_RET] = regs->syscall_nr; in handle_syscall_restart()
72 regs->pc -= 4; in handle_syscall_restart()
[all …]
/arch/hexagon/kernel/
Dvm_events.c34 void show_regs(struct pt_regs *regs) in show_regs() argument
37 regs->restart_r0, regs->syscall_nr); in show_regs()
38 printk(KERN_EMERG "preds: \t\t0x%08lx\n", regs->preds); in show_regs()
40 regs->lc0, regs->sa0, regs->m0); in show_regs()
42 regs->lc1, regs->sa1, regs->m1); in show_regs()
44 regs->gp, regs->ugp, regs->usr); in show_regs()
45 printk(KERN_EMERG "r0: \t0x%08lx %08lx %08lx %08lx\n", regs->r00, in show_regs()
46 regs->r01, in show_regs()
47 regs->r02, in show_regs()
48 regs->r03); in show_regs()
[all …]
/arch/sh/include/asm/
Dsyscall_32.h11 struct pt_regs *regs) in syscall_get_nr() argument
13 return (regs->tra >= 0) ? regs->regs[3] : -1L; in syscall_get_nr()
17 struct pt_regs *regs) in syscall_rollback() argument
26 struct pt_regs *regs) in syscall_get_error() argument
28 return IS_ERR_VALUE(regs->regs[0]) ? regs->regs[0] : 0; in syscall_get_error()
32 struct pt_regs *regs) in syscall_get_return_value() argument
34 return regs->regs[0]; in syscall_get_return_value()
38 struct pt_regs *regs, in syscall_set_return_value() argument
42 regs->regs[0] = -error; in syscall_set_return_value()
44 regs->regs[0] = val; in syscall_set_return_value()
[all …]
Delf.h137 do { _r->regs[0]=0; _r->regs[1]=0; _r->regs[2]=0; _r->regs[3]=0; \
138 _r->regs[4]=0; _r->regs[5]=0; _r->regs[6]=0; _r->regs[7]=0; \
139 _r->regs[8]=0; _r->regs[9]=0; _r->regs[10]=0; _r->regs[11]=0; \
140 _r->regs[12]=0; _r->regs[13]=0; _r->regs[14]=0; _r->regs[15]=0; \
141 _r->regs[16]=0; _r->regs[17]=0; _r->regs[18]=0; _r->regs[19]=0; \
142 _r->regs[20]=0; _r->regs[21]=0; _r->regs[22]=0; _r->regs[23]=0; \
143 _r->regs[24]=0; _r->regs[25]=0; _r->regs[26]=0; _r->regs[27]=0; \
144 _r->regs[28]=0; _r->regs[29]=0; _r->regs[30]=0; _r->regs[31]=0; \
145 _r->regs[32]=0; _r->regs[33]=0; _r->regs[34]=0; _r->regs[35]=0; \
146 _r->regs[36]=0; _r->regs[37]=0; _r->regs[38]=0; _r->regs[39]=0; \
[all …]
Dsyscall_64.h10 struct pt_regs *regs) in syscall_get_nr() argument
12 return (regs->syscall_nr >= 0) ? regs->regs[9] : -1L; in syscall_get_nr()
16 struct pt_regs *regs) in syscall_rollback() argument
25 struct pt_regs *regs) in syscall_get_error() argument
27 return IS_ERR_VALUE(regs->regs[9]) ? regs->regs[9] : 0; in syscall_get_error()
31 struct pt_regs *regs) in syscall_get_return_value() argument
33 return regs->regs[9]; in syscall_get_return_value()
37 struct pt_regs *regs, in syscall_set_return_value() argument
41 regs->regs[9] = -error; in syscall_set_return_value()
43 regs->regs[9] = val; in syscall_set_return_value()
[all …]
/arch/score/kernel/
Dtraps.c118 void show_regs(struct pt_regs *regs) in show_regs() argument
121 regs->regs[0], regs->regs[1], regs->regs[2], regs->regs[3], in show_regs()
122 regs->regs[4], regs->regs[5], regs->regs[6], regs->regs[7]); in show_regs()
124 regs->regs[8], regs->regs[9], regs->regs[10], regs->regs[11], in show_regs()
125 regs->regs[12], regs->regs[13], regs->regs[14], regs->regs[15]); in show_regs()
127 regs->regs[16], regs->regs[17], regs->regs[18], regs->regs[19], in show_regs()
128 regs->regs[20], regs->regs[21], regs->regs[22], regs->regs[23]); in show_regs()
130 regs->regs[24], regs->regs[25], regs->regs[26], regs->regs[27], in show_regs()
131 regs->regs[28], regs->regs[29], regs->regs[30], regs->regs[31]); in show_regs()
133 printk("CEH : %08lx\n", regs->ceh); in show_regs()
[all …]
Dsignal.c45 static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in setup_sigcontext() argument
50 reg = regs->cp0_epc; err |= __put_user(reg, &sc->sc_pc); in setup_sigcontext()
51 err |= __put_user(regs->cp0_psr, &sc->sc_psr); in setup_sigcontext()
52 err |= __put_user(regs->cp0_condition, &sc->sc_condition); in setup_sigcontext()
56 reg = regs->regs[i]; \ in setup_sigcontext()
71 reg = regs->ceh; err |= __put_user(reg, &sc->sc_mdceh); in setup_sigcontext()
72 reg = regs->cel; err |= __put_user(reg, &sc->sc_mdcel); in setup_sigcontext()
73 err |= __put_user(regs->cp0_ecr, &sc->sc_ecr); in setup_sigcontext()
74 err |= __put_user(regs->cp0_ema, &sc->sc_ema); in setup_sigcontext()
79 static int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in restore_sigcontext() argument
[all …]
/arch/powerpc/lib/
Dsstep.c63 static int __kprobes branch_taken(unsigned int instr, struct pt_regs *regs) in branch_taken() argument
70 --regs->ctr; in branch_taken()
71 if (((bo >> 1) & 1) ^ (regs->ctr == 0)) in branch_taken()
77 if (((regs->ccr >> (31 - bi)) & 1) != ((bo >> 3) & 1)) in branch_taken()
84 static long __kprobes address_ok(struct pt_regs *regs, unsigned long ea, int nb) in address_ok() argument
86 if (!user_mode(regs)) in address_ok()
94 static unsigned long __kprobes dform_ea(unsigned int instr, struct pt_regs *regs) in dform_ea() argument
102 ea += regs->gpr[ra]; in dform_ea()
104 regs->gpr[ra] = ea; in dform_ea()
107 return truncate_if_32bit(regs->msr, ea); in dform_ea()
[all …]
/arch/m32r/kernel/
Dalign.c10 static int get_reg(struct pt_regs *regs, int nr) in get_reg() argument
15 val = *(unsigned long *)(&regs->r0 + nr); in get_reg()
17 val = *(unsigned long *)(&regs->r4 + (nr - 4)); in get_reg()
19 val = *(unsigned long *)(&regs->r7 + (nr - 7)); in get_reg()
21 val = *(unsigned long *)(&regs->fp + (nr - 13)); in get_reg()
26 static void set_reg(struct pt_regs *regs, int nr, int val) in set_reg() argument
29 *(unsigned long *)(&regs->r0 + nr) = val; in set_reg()
31 *(unsigned long *)(&regs->r4 + (nr - 4)) = val; in set_reg()
33 *(unsigned long *)(&regs->r7 + (nr - 7)) = val; in set_reg()
35 *(unsigned long *)(&regs->fp + (nr - 13)) = val; in set_reg()
[all …]
/arch/openrisc/kernel/
Dtraps.c119 void show_registers(struct pt_regs *regs) in show_registers() argument
125 esp = (unsigned long)(&regs->sp); in show_registers()
126 if (user_mode(regs)) in show_registers()
131 smp_processor_id(), regs->pc, regs->sr, regs->sp); in show_registers()
133 0L, regs->gpr[1], regs->gpr[2], regs->gpr[3]); in show_registers()
135 regs->gpr[4], regs->gpr[5], regs->gpr[6], regs->gpr[7]); in show_registers()
137 regs->gpr[8], regs->gpr[9], regs->gpr[10], regs->gpr[11]); in show_registers()
139 regs->gpr[12], regs->gpr[13], regs->gpr[14], regs->gpr[15]); in show_registers()
141 regs->gpr[16], regs->gpr[17], regs->gpr[18], regs->gpr[19]); in show_registers()
143 regs->gpr[20], regs->gpr[21], regs->gpr[22], regs->gpr[23]); in show_registers()
[all …]
/arch/m68k/include/asm/
Da.out-core.h23 static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump) in aout_dump_thread() argument
40 dump->u_ar0 = offsetof(struct user, regs); in aout_dump_thread()
41 sw = ((struct switch_stack *)regs) - 1; in aout_dump_thread()
42 dump->regs.d1 = regs->d1; in aout_dump_thread()
43 dump->regs.d2 = regs->d2; in aout_dump_thread()
44 dump->regs.d3 = regs->d3; in aout_dump_thread()
45 dump->regs.d4 = regs->d4; in aout_dump_thread()
46 dump->regs.d5 = regs->d5; in aout_dump_thread()
47 dump->regs.d6 = sw->d6; in aout_dump_thread()
48 dump->regs.d7 = sw->d7; in aout_dump_thread()
[all …]
/arch/x86/um/asm/
Delf.h36 #define ELF_PLAT_INIT(regs, load_addr) do { \ argument
37 PT_REGS_EBX(regs) = 0; \
38 PT_REGS_ECX(regs) = 0; \
39 PT_REGS_EDX(regs) = 0; \
40 PT_REGS_ESI(regs) = 0; \
41 PT_REGS_EDI(regs) = 0; \
42 PT_REGS_EBP(regs) = 0; \
43 PT_REGS_EAX(regs) = 0; \
48 #define ELF_CORE_COPY_REGS(pr_reg, regs) do { \ argument
49 pr_reg[0] = PT_REGS_EBX(regs); \
[all …]
/arch/x86/include/asm/
Da.out-core.h25 static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump) in aout_dump_thread() argument
30 dump->start_stack = regs->sp & ~(PAGE_SIZE - 1); in aout_dump_thread()
42 dump->regs.bx = regs->bx; in aout_dump_thread()
43 dump->regs.cx = regs->cx; in aout_dump_thread()
44 dump->regs.dx = regs->dx; in aout_dump_thread()
45 dump->regs.si = regs->si; in aout_dump_thread()
46 dump->regs.di = regs->di; in aout_dump_thread()
47 dump->regs.bp = regs->bp; in aout_dump_thread()
48 dump->regs.ax = regs->ax; in aout_dump_thread()
49 dump->regs.ds = (u16)regs->ds; in aout_dump_thread()
[all …]
/arch/unicore32/kernel/
Dsignal.c58 static int restore_sigframe(struct pt_regs *regs, struct sigframe __user *sf) in restore_sigframe() argument
69 err |= __get_user(regs->UCreg_00, &sf->uc.uc_mcontext.regs.UCreg_00); in restore_sigframe()
70 err |= __get_user(regs->UCreg_01, &sf->uc.uc_mcontext.regs.UCreg_01); in restore_sigframe()
71 err |= __get_user(regs->UCreg_02, &sf->uc.uc_mcontext.regs.UCreg_02); in restore_sigframe()
72 err |= __get_user(regs->UCreg_03, &sf->uc.uc_mcontext.regs.UCreg_03); in restore_sigframe()
73 err |= __get_user(regs->UCreg_04, &sf->uc.uc_mcontext.regs.UCreg_04); in restore_sigframe()
74 err |= __get_user(regs->UCreg_05, &sf->uc.uc_mcontext.regs.UCreg_05); in restore_sigframe()
75 err |= __get_user(regs->UCreg_06, &sf->uc.uc_mcontext.regs.UCreg_06); in restore_sigframe()
76 err |= __get_user(regs->UCreg_07, &sf->uc.uc_mcontext.regs.UCreg_07); in restore_sigframe()
77 err |= __get_user(regs->UCreg_08, &sf->uc.uc_mcontext.regs.UCreg_08); in restore_sigframe()
[all …]
/arch/sparc/kernel/
Dentry.h9 extern void handler_irq(int irq, struct pt_regs *regs);
13 extern void do_hw_interrupt(struct pt_regs *regs, unsigned long type);
14 extern void do_illegal_instruction(struct pt_regs *regs, unsigned long pc,
17 extern void do_priv_instruction(struct pt_regs *regs, unsigned long pc,
19 extern void do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc,
22 extern void do_fpd_trap(struct pt_regs *regs, unsigned long pc,
24 extern void do_fpe_trap(struct pt_regs *regs, unsigned long pc,
26 extern void handle_tag_overflow(struct pt_regs *regs, unsigned long pc,
28 extern void handle_watchpoint(struct pt_regs *regs, unsigned long pc,
30 extern void handle_reg_access(struct pt_regs *regs, unsigned long pc,
[all …]
/arch/powerpc/kernel/
Dtraps.c64 int (*__debugger)(struct pt_regs *regs) __read_mostly;
65 int (*__debugger_ipi)(struct pt_regs *regs) __read_mostly;
66 int (*__debugger_bpt)(struct pt_regs *regs) __read_mostly;
67 int (*__debugger_sstep)(struct pt_regs *regs) __read_mostly;
68 int (*__debugger_iabr_match)(struct pt_regs *regs) __read_mostly;
69 int (*__debugger_dabr_match)(struct pt_regs *regs) __read_mostly;
70 int (*__debugger_fault_handler)(struct pt_regs *regs) __read_mostly;
108 static unsigned __kprobes long oops_begin(struct pt_regs *regs) in oops_begin() argument
113 if (debugger(regs)) in oops_begin()
136 static void __kprobes oops_end(unsigned long flags, struct pt_regs *regs, in oops_end() argument
[all …]
/arch/microblaze/kernel/
Dprocess.c20 void show_regs(struct pt_regs *regs) in show_regs() argument
22 printk(KERN_INFO " Registers dump: mode=%X\r\n", regs->pt_mode); in show_regs()
24 regs->r1, regs->r2, regs->r3, regs->r4); in show_regs()
26 regs->r5, regs->r6, regs->r7, regs->r8); in show_regs()
28 regs->r9, regs->r10, regs->r11, regs->r12); in show_regs()
30 regs->r13, regs->r14, regs->r15, regs->r16); in show_regs()
32 regs->r17, regs->r18, regs->r19, regs->r20); in show_regs()
34 regs->r21, regs->r22, regs->r23, regs->r24); in show_regs()
36 regs->r25, regs->r26, regs->r27, regs->r28); in show_regs()
38 regs->r29, regs->r30, regs->r31, regs->pc); in show_regs()
[all …]
/arch/microblaze/include/asm/
Dsyscall.h10 struct pt_regs *regs) in syscall_get_nr() argument
12 return regs->r12; in syscall_get_nr()
16 struct pt_regs *regs) in syscall_rollback() argument
22 struct pt_regs *regs) in syscall_get_error() argument
24 return IS_ERR_VALUE(regs->r3) ? regs->r3 : 0; in syscall_get_error()
28 struct pt_regs *regs) in syscall_get_return_value() argument
30 return regs->r3; in syscall_get_return_value()
34 struct pt_regs *regs, in syscall_set_return_value() argument
38 regs->r3 = -error; in syscall_set_return_value()
40 regs->r3 = val; in syscall_set_return_value()
[all …]
/arch/mips/include/asm/
Dsyscall.h29 struct pt_regs *regs) in syscall_get_nr() argument
34 (regs->regs[2] == __NR_syscall)) in syscall_get_nr()
35 return regs->regs[4]; in syscall_get_nr()
37 return regs->regs[2]; in syscall_get_nr()
41 struct task_struct *task, struct pt_regs *regs, unsigned int n) in mips_get_syscall_arg() argument
43 unsigned long usp = regs->regs[29]; in mips_get_syscall_arg()
47 *arg = regs->regs[4 + n]; in mips_get_syscall_arg()
63 *arg = regs->regs[4 + n]; in mips_get_syscall_arg()
74 struct pt_regs *regs) in syscall_get_return_value() argument
76 return regs->regs[2]; in syscall_get_return_value()
[all …]
/arch/score/include/asm/
Delf.h83 _r->regs[1] = _r->regs[2] = _r->regs[3] = _r->regs[4] = 0; \
84 _r->regs[5] = _r->regs[6] = _r->regs[7] = _r->regs[8] = 0; \
85 _r->regs[9] = _r->regs[10] = _r->regs[11] = _r->regs[12] = 0; \
86 _r->regs[13] = _r->regs[14] = _r->regs[15] = _r->regs[16] = 0; \
87 _r->regs[17] = _r->regs[18] = _r->regs[19] = _r->regs[20] = 0; \
88 _r->regs[21] = _r->regs[22] = _r->regs[23] = _r->regs[24] = 0; \
89 _r->regs[25] = _r->regs[26] = _r->regs[27] = _r->regs[28] = 0; \
90 _r->regs[30] = _r->regs[31] = 0; \
/arch/x86/um/
Dsysrq_64.c15 void __show_regs(struct pt_regs *regs) in __show_regs() argument
21 printk(KERN_INFO "RIP: %04lx:[<%016lx>]\n", PT_REGS_CS(regs) & 0xffff, in __show_regs()
22 PT_REGS_RIP(regs)); in __show_regs()
23 printk(KERN_INFO "RSP: %016lx EFLAGS: %08lx\n", PT_REGS_SP(regs), in __show_regs()
24 PT_REGS_EFLAGS(regs)); in __show_regs()
26 PT_REGS_RAX(regs), PT_REGS_RBX(regs), PT_REGS_RCX(regs)); in __show_regs()
28 PT_REGS_RDX(regs), PT_REGS_RSI(regs), PT_REGS_RDI(regs)); in __show_regs()
30 PT_REGS_RBP(regs), PT_REGS_R8(regs), PT_REGS_R9(regs)); in __show_regs()
32 PT_REGS_R10(regs), PT_REGS_R11(regs), PT_REGS_R12(regs)); in __show_regs()
34 PT_REGS_R13(regs), PT_REGS_R14(regs), PT_REGS_R15(regs)); in __show_regs()
[all …]
/arch/frv/include/asm/
Dsyscall.h22 struct pt_regs *regs) in syscall_get_nr() argument
24 return regs->syscallno; in syscall_get_nr()
32 struct pt_regs *regs) in syscall_rollback() argument
34 regs->gr8 = regs->orig_gr8; in syscall_rollback()
42 struct pt_regs *regs) in syscall_get_error() argument
44 return IS_ERR_VALUE(regs->gr8) ? regs->gr8 : 0; in syscall_get_error()
51 struct pt_regs *regs) in syscall_get_return_value() argument
53 return regs->gr8; in syscall_get_return_value()
60 struct pt_regs *regs, in syscall_set_return_value() argument
64 regs->gr8 = -error; in syscall_set_return_value()
[all …]
/arch/parisc/kernel/
Dtraps.c53 struct pt_regs *regs);
79 static void print_gr(char *level, struct pt_regs *regs) in print_gr() argument
86 printbinary(buf, regs->gr[0], 32); in print_gr()
90 PRINTREGS(level, regs->gr, "r", RFMT, i); in print_gr()
93 static void print_fr(char *level, struct pt_regs *regs) in print_fr() argument
117 PRINTREGS(level, regs->fr, "fr", FFMT, i); in print_fr()
120 void show_regs(struct pt_regs *regs) in show_regs() argument
126 user = user_mode(regs); in show_regs()
129 print_gr(level, regs); in show_regs()
132 PRINTREGS(level, regs->sr, "sr", RFMT, i); in show_regs()
[all …]

12345678910>>...46