Lines Matching refs:pt_regs
37 static int get_step_address(struct pt_regs *regs, unsigned long *next_addr) in get_step_address()
120 static int do_single_step(struct pt_regs *regs) in do_single_step()
154 static void undo_single_step(struct pt_regs *regs) in undo_single_step()
170 {DBG_REG_RA, GDB_SIZEOF_REG, offsetof(struct pt_regs, ra)},
171 {DBG_REG_SP, GDB_SIZEOF_REG, offsetof(struct pt_regs, sp)},
172 {DBG_REG_GP, GDB_SIZEOF_REG, offsetof(struct pt_regs, gp)},
173 {DBG_REG_TP, GDB_SIZEOF_REG, offsetof(struct pt_regs, tp)},
174 {DBG_REG_T0, GDB_SIZEOF_REG, offsetof(struct pt_regs, t0)},
175 {DBG_REG_T1, GDB_SIZEOF_REG, offsetof(struct pt_regs, t1)},
176 {DBG_REG_T2, GDB_SIZEOF_REG, offsetof(struct pt_regs, t2)},
177 {DBG_REG_FP, GDB_SIZEOF_REG, offsetof(struct pt_regs, s0)},
178 {DBG_REG_S1, GDB_SIZEOF_REG, offsetof(struct pt_regs, a1)},
179 {DBG_REG_A0, GDB_SIZEOF_REG, offsetof(struct pt_regs, a0)},
180 {DBG_REG_A1, GDB_SIZEOF_REG, offsetof(struct pt_regs, a1)},
181 {DBG_REG_A2, GDB_SIZEOF_REG, offsetof(struct pt_regs, a2)},
182 {DBG_REG_A3, GDB_SIZEOF_REG, offsetof(struct pt_regs, a3)},
183 {DBG_REG_A4, GDB_SIZEOF_REG, offsetof(struct pt_regs, a4)},
184 {DBG_REG_A5, GDB_SIZEOF_REG, offsetof(struct pt_regs, a5)},
185 {DBG_REG_A6, GDB_SIZEOF_REG, offsetof(struct pt_regs, a6)},
186 {DBG_REG_A7, GDB_SIZEOF_REG, offsetof(struct pt_regs, a7)},
187 {DBG_REG_S2, GDB_SIZEOF_REG, offsetof(struct pt_regs, s2)},
188 {DBG_REG_S3, GDB_SIZEOF_REG, offsetof(struct pt_regs, s3)},
189 {DBG_REG_S4, GDB_SIZEOF_REG, offsetof(struct pt_regs, s4)},
190 {DBG_REG_S5, GDB_SIZEOF_REG, offsetof(struct pt_regs, s5)},
191 {DBG_REG_S6, GDB_SIZEOF_REG, offsetof(struct pt_regs, s6)},
192 {DBG_REG_S7, GDB_SIZEOF_REG, offsetof(struct pt_regs, s7)},
193 {DBG_REG_S8, GDB_SIZEOF_REG, offsetof(struct pt_regs, s8)},
194 {DBG_REG_S9, GDB_SIZEOF_REG, offsetof(struct pt_regs, s9)},
195 {DBG_REG_S10, GDB_SIZEOF_REG, offsetof(struct pt_regs, s10)},
196 {DBG_REG_S11, GDB_SIZEOF_REG, offsetof(struct pt_regs, s11)},
197 {DBG_REG_T3, GDB_SIZEOF_REG, offsetof(struct pt_regs, t3)},
198 {DBG_REG_T4, GDB_SIZEOF_REG, offsetof(struct pt_regs, t4)},
199 {DBG_REG_T5, GDB_SIZEOF_REG, offsetof(struct pt_regs, t5)},
200 {DBG_REG_T6, GDB_SIZEOF_REG, offsetof(struct pt_regs, t6)},
201 {DBG_REG_EPC, GDB_SIZEOF_REG, offsetof(struct pt_regs, epc)},
202 {DBG_REG_STATUS, GDB_SIZEOF_REG, offsetof(struct pt_regs, status)},
203 {DBG_REG_BADADDR, GDB_SIZEOF_REG, offsetof(struct pt_regs, badaddr)},
204 {DBG_REG_CAUSE, GDB_SIZEOF_REG, offsetof(struct pt_regs, cause)},
207 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg()
220 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg()
252 void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) in kgdb_arch_set_pc()
268 static inline void kgdb_arch_update_addr(struct pt_regs *regs, in kgdb_arch_update_addr()
281 struct pt_regs *regs) in kgdb_arch_handle_exception()
319 struct pt_regs *regs = args->regs; in kgdb_riscv_notify()