Lines Matching refs:regs
56 { "zero", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[0]) },
57 { "at", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[1]) },
58 { "v0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[2]) },
59 { "v1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[3]) },
60 { "a0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[4]) },
61 { "a1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[5]) },
62 { "a2", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[6]) },
63 { "a3", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[7]) },
64 { "t0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[8]) },
65 { "t1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[9]) },
66 { "t2", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[10]) },
67 { "t3", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[11]) },
68 { "t4", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[12]) },
69 { "t5", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[13]) },
70 { "t6", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[14]) },
71 { "t7", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[15]) },
72 { "s0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[16]) },
73 { "s1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[17]) },
74 { "s2", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[18]) },
75 { "s3", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[19]) },
76 { "s4", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[20]) },
77 { "s5", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[21]) },
78 { "s6", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[22]) },
79 { "s7", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[23]) },
80 { "t8", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[24]) },
81 { "t9", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[25]) },
82 { "k0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[26]) },
83 { "k1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[27]) },
84 { "gp", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[28]) },
85 { "sp", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[29]) },
86 { "s8", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[30]) },
87 { "ra", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[31]) },
130 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
138 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
142 if (!(regs->cp0_status & ST0_CU1)) in dbg_set_reg()
163 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument
172 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg()
176 if (!(regs->cp0_status & ST0_CU1)) in dbg_get_reg()
249 struct pt_regs *regs = (struct pt_regs *)ksp - 1; in sleeping_thread_to_gdb_regs() local
257 *(ptr++) = regs->regs[reg]; in sleeping_thread_to_gdb_regs()
261 *(ptr++) = regs->regs[reg]; in sleeping_thread_to_gdb_regs()
268 *(ptr++) = regs->regs[reg]; in sleeping_thread_to_gdb_regs()
270 *(ptr++) = regs->cp0_status; in sleeping_thread_to_gdb_regs()
271 *(ptr++) = regs->lo; in sleeping_thread_to_gdb_regs()
272 *(ptr++) = regs->hi; in sleeping_thread_to_gdb_regs()
273 *(ptr++) = regs->cp0_badvaddr; in sleeping_thread_to_gdb_regs()
274 *(ptr++) = regs->cp0_cause; in sleeping_thread_to_gdb_regs()
275 *(ptr++) = regs->cp0_epc; in sleeping_thread_to_gdb_regs()
278 void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) in kgdb_arch_set_pc() argument
280 regs->cp0_epc = pc; in kgdb_arch_set_pc()
291 struct pt_regs *regs = args->regs; in kgdb_mips_notify() local
292 int trap = (regs->cp0_cause & 0x7c) >> 2; in kgdb_mips_notify()
305 if (user_mode(regs)) in kgdb_mips_notify()
313 kgdb_nmicallback(smp_processor_id(), regs); in kgdb_mips_notify()
315 if (kgdb_handle_exception(trap, compute_signal(trap), cmd, regs)) { in kgdb_mips_notify()
321 if ((trap == 9) && (regs->cp0_epc == (unsigned long)breakinst)) in kgdb_mips_notify()
322 regs->cp0_epc += 4; in kgdb_mips_notify()
334 struct pt_regs *regs, long err, int trap, int sig) in kgdb_ll_trap() argument
337 .regs = regs, in kgdb_ll_trap()
361 struct pt_regs *regs) in kgdb_arch_handle_exception() argument
371 regs->cp0_epc = address; in kgdb_arch_handle_exception()