Home
last modified time | relevance | path

Searched refs:gdb_regs (Results 1 – 16 of 16) sorted by relevance

/linux-6.1.9/arch/sparc/kernel/
Dkgdb_32.c19 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
24 gdb_regs[GDB_G0] = 0; in pt_regs_to_gdb_regs()
26 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs()
30 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs()
32 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs()
35 gdb_regs[i] = 0; in pt_regs_to_gdb_regs()
37 gdb_regs[GDB_Y] = regs->y; in pt_regs_to_gdb_regs()
38 gdb_regs[GDB_PSR] = regs->psr; in pt_regs_to_gdb_regs()
39 gdb_regs[GDB_WIM] = 0; in pt_regs_to_gdb_regs()
40 gdb_regs[GDB_TBR] = (unsigned long) &trapbase; in pt_regs_to_gdb_regs()
[all …]
Dkgdb_64.c19 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
24 gdb_regs[GDB_G0] = 0; in pt_regs_to_gdb_regs()
26 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs()
30 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs()
32 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs()
35 gdb_regs[i] = 0; in pt_regs_to_gdb_regs()
37 gdb_regs[GDB_PC] = regs->tpc; in pt_regs_to_gdb_regs()
38 gdb_regs[GDB_NPC] = regs->tnpc; in pt_regs_to_gdb_regs()
39 gdb_regs[GDB_STATE] = regs->tstate; in pt_regs_to_gdb_regs()
40 gdb_regs[GDB_FSR] = 0; in pt_regs_to_gdb_regs()
[all …]
/linux-6.1.9/arch/arc/kernel/
Dkgdb.c14 static void to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *kernel_regs, in to_gdb_regs() argument
20 gdb_regs[_R0 + regno] = get_reg(regno, kernel_regs, cregs); in to_gdb_regs()
23 gdb_regs[regno] = 0; in to_gdb_regs()
25 gdb_regs[_FP] = kernel_regs->fp; in to_gdb_regs()
26 gdb_regs[__SP] = kernel_regs->sp; in to_gdb_regs()
27 gdb_regs[_BLINK] = kernel_regs->blink; in to_gdb_regs()
28 gdb_regs[_RET] = kernel_regs->ret; in to_gdb_regs()
29 gdb_regs[_STATUS32] = kernel_regs->status32; in to_gdb_regs()
30 gdb_regs[_LP_COUNT] = kernel_regs->lp_count; in to_gdb_regs()
31 gdb_regs[_LP_END] = kernel_regs->lp_end; in to_gdb_regs()
[all …]
/linux-6.1.9/arch/microblaze/kernel/
Dkgdb.c37 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
45 gdb_regs[i] = pt_regb[i]; in pt_regs_to_gdb_regs()
49 gdb_regs[GDB_BTR] = temp; in pt_regs_to_gdb_regs()
53 gdb_regs[GDB_PVR + i] = pvr.pvr[i]; in pt_regs_to_gdb_regs()
57 gdb_regs[GDB_REDR] = temp; in pt_regs_to_gdb_regs()
59 gdb_regs[GDB_RPID] = temp; in pt_regs_to_gdb_regs()
61 gdb_regs[GDB_RZPR] = temp; in pt_regs_to_gdb_regs()
63 gdb_regs[GDB_RTLBX] = temp; in pt_regs_to_gdb_regs()
65 gdb_regs[GDB_RTLBLO] = temp; in pt_regs_to_gdb_regs()
67 gdb_regs[GDB_RTLBHI] = temp; in pt_regs_to_gdb_regs()
[all …]
/linux-6.1.9/arch/arm64/kernel/
Dkgdb.c129 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) in sleeping_thread_to_gdb_regs() argument
134 memset((char *)gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
136 gdb_regs[19] = cpu_context->x19; in sleeping_thread_to_gdb_regs()
137 gdb_regs[20] = cpu_context->x20; in sleeping_thread_to_gdb_regs()
138 gdb_regs[21] = cpu_context->x21; in sleeping_thread_to_gdb_regs()
139 gdb_regs[22] = cpu_context->x22; in sleeping_thread_to_gdb_regs()
140 gdb_regs[23] = cpu_context->x23; in sleeping_thread_to_gdb_regs()
141 gdb_regs[24] = cpu_context->x24; in sleeping_thread_to_gdb_regs()
142 gdb_regs[25] = cpu_context->x25; in sleeping_thread_to_gdb_regs()
143 gdb_regs[26] = cpu_context->x26; in sleeping_thread_to_gdb_regs()
[all …]
/linux-6.1.9/arch/x86/kernel/
Dkgdb.c142 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
145 u32 *gdb_regs32 = (u32 *)gdb_regs; in sleeping_thread_to_gdb_regs()
147 gdb_regs[GDB_AX] = 0; in sleeping_thread_to_gdb_regs()
148 gdb_regs[GDB_BX] = 0; in sleeping_thread_to_gdb_regs()
149 gdb_regs[GDB_CX] = 0; in sleeping_thread_to_gdb_regs()
150 gdb_regs[GDB_DX] = 0; in sleeping_thread_to_gdb_regs()
151 gdb_regs[GDB_SI] = 0; in sleeping_thread_to_gdb_regs()
152 gdb_regs[GDB_DI] = 0; in sleeping_thread_to_gdb_regs()
153 gdb_regs[GDB_BP] = ((struct inactive_task_frame *)p->thread.sp)->bp; in sleeping_thread_to_gdb_regs()
155 gdb_regs[GDB_DS] = __KERNEL_DS; in sleeping_thread_to_gdb_regs()
[all …]
/linux-6.1.9/arch/arm/kernel/
Dkgdb.c76 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) in sleeping_thread_to_gdb_regs() argument
87 gdb_regs[regno] = 0; in sleeping_thread_to_gdb_regs()
91 gdb_regs[_R4] = ti->cpu_context.r4; in sleeping_thread_to_gdb_regs()
92 gdb_regs[_R5] = ti->cpu_context.r5; in sleeping_thread_to_gdb_regs()
93 gdb_regs[_R6] = ti->cpu_context.r6; in sleeping_thread_to_gdb_regs()
94 gdb_regs[_R7] = ti->cpu_context.r7; in sleeping_thread_to_gdb_regs()
95 gdb_regs[_R8] = ti->cpu_context.r8; in sleeping_thread_to_gdb_regs()
96 gdb_regs[_R9] = ti->cpu_context.r9; in sleeping_thread_to_gdb_regs()
97 gdb_regs[_R10] = ti->cpu_context.sl; in sleeping_thread_to_gdb_regs()
98 gdb_regs[_FP] = ti->cpu_context.fp; in sleeping_thread_to_gdb_regs()
[all …]
/linux-6.1.9/arch/riscv/kernel/
Dkgdb.c251 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) in sleeping_thread_to_gdb_regs() argument
254 memset((char *)gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
256 gdb_regs[DBG_REG_SP_OFF] = task->thread.sp; in sleeping_thread_to_gdb_regs()
257 gdb_regs[DBG_REG_FP_OFF] = task->thread.s[0]; in sleeping_thread_to_gdb_regs()
258 gdb_regs[DBG_REG_S1_OFF] = task->thread.s[1]; in sleeping_thread_to_gdb_regs()
259 gdb_regs[DBG_REG_S2_OFF] = task->thread.s[2]; in sleeping_thread_to_gdb_regs()
260 gdb_regs[DBG_REG_S3_OFF] = task->thread.s[3]; in sleeping_thread_to_gdb_regs()
261 gdb_regs[DBG_REG_S4_OFF] = task->thread.s[4]; in sleeping_thread_to_gdb_regs()
262 gdb_regs[DBG_REG_S5_OFF] = task->thread.s[5]; in sleeping_thread_to_gdb_regs()
263 gdb_regs[DBG_REG_S6_OFF] = task->thread.s[6]; in sleeping_thread_to_gdb_regs()
[all …]
/linux-6.1.9/kernel/debug/
Dgdbstub.c48 static unsigned long gdb_regs[(NUMREGBYTES + variable
339 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
343 char *ptr = (char *)gdb_regs; in pt_regs_to_gdb_regs()
351 void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) in gdb_regs_to_pt_regs() argument
355 char *ptr = (char *)gdb_regs; in gdb_regs_to_pt_regs()
521 pt_regs_to_gdb_regs(gdb_regs, local_debuggerinfo); in gdb_get_regs_helper()
530 sleeping_thread_to_gdb_regs(gdb_regs, thread); in gdb_get_regs_helper()
538 kgdb_mem2hex((char *)gdb_regs, remcom_out_buffer, NUMREGBYTES); in gdb_cmd_getregs()
544 kgdb_hex2mem(&remcom_in_buffer[1], (char *)gdb_regs, NUMREGBYTES); in gdb_cmd_setregs()
549 gdb_regs_to_pt_regs(gdb_regs, ks->linux_regs); in gdb_cmd_setregs()
[all …]
/linux-6.1.9/arch/parisc/kernel/
Dkgdb.c63 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
65 struct parisc_gdb_regs *gr = (struct parisc_gdb_regs *)gdb_regs; in pt_regs_to_gdb_regs()
95 void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) in gdb_regs_to_pt_regs() argument
97 struct parisc_gdb_regs *gr = (struct parisc_gdb_regs *)gdb_regs; in gdb_regs_to_pt_regs()
126 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, in sleeping_thread_to_gdb_regs() argument
137 pt_regs_to_gdb_regs(gdb_regs, regs); in sleeping_thread_to_gdb_regs()
/linux-6.1.9/arch/sh/kernel/
Dkgdb.c223 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
230 gdb_regs[reg] = 0; in sleeping_thread_to_gdb_regs()
240 gdb_regs[reg] = thread_regs->regs[reg]; in sleeping_thread_to_gdb_regs()
242 gdb_regs[GDB_R15] = p->thread.sp; in sleeping_thread_to_gdb_regs()
243 gdb_regs[GDB_PC] = p->thread.pc; in sleeping_thread_to_gdb_regs()
248 gdb_regs[GDB_PR] = thread_regs->pr; in sleeping_thread_to_gdb_regs()
249 gdb_regs[GDB_GBR] = thread_regs->gbr; in sleeping_thread_to_gdb_regs()
/linux-6.1.9/arch/nios2/kernel/
Dkgdb.c97 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
99 memset((char *)gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
100 gdb_regs[GDB_SP] = p->thread.kregs->sp; in sleeping_thread_to_gdb_regs()
101 gdb_regs[GDB_PC] = p->thread.kregs->ea; in sleeping_thread_to_gdb_regs()
/linux-6.1.9/include/linux/
Dkgdb.h131 extern void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs);
146 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p);
156 extern void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs);
/linux-6.1.9/arch/hexagon/kernel/
Dkgdb.c107 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, in sleeping_thread_to_gdb_regs() argument
116 memset(gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
120 gdb_regs[0] = thread_regs->r00; in sleeping_thread_to_gdb_regs()
/linux-6.1.9/arch/powerpc/kernel/
Dkgdb.c191 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
195 unsigned long *ptr = gdb_regs; in sleeping_thread_to_gdb_regs()
198 memset(gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
231 (unsigned long)(((void *)gdb_regs) + NUMREGBYTES)); in sleeping_thread_to_gdb_regs()
/linux-6.1.9/arch/mips/kernel/
Dkgdb.c225 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
229 u32 *ptr = (u32 *)gdb_regs; in sleeping_thread_to_gdb_regs()
231 u64 *ptr = (u64 *)gdb_regs; in sleeping_thread_to_gdb_regs()