Home
last modified time | relevance | path

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

/linux-4.4.14/arch/blackfin/kernel/
Dkgdb.c14 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
16 gdb_regs[BFIN_R0] = regs->r0; in pt_regs_to_gdb_regs()
17 gdb_regs[BFIN_R1] = regs->r1; in pt_regs_to_gdb_regs()
18 gdb_regs[BFIN_R2] = regs->r2; in pt_regs_to_gdb_regs()
19 gdb_regs[BFIN_R3] = regs->r3; in pt_regs_to_gdb_regs()
20 gdb_regs[BFIN_R4] = regs->r4; in pt_regs_to_gdb_regs()
21 gdb_regs[BFIN_R5] = regs->r5; in pt_regs_to_gdb_regs()
22 gdb_regs[BFIN_R6] = regs->r6; in pt_regs_to_gdb_regs()
23 gdb_regs[BFIN_R7] = regs->r7; in pt_regs_to_gdb_regs()
24 gdb_regs[BFIN_P0] = regs->p0; in pt_regs_to_gdb_regs()
[all …]
/linux-4.4.14/arch/sparc/kernel/
Dkgdb_32.c17 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
22 gdb_regs[GDB_G0] = 0; in pt_regs_to_gdb_regs()
24 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs()
28 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs()
30 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs()
33 gdb_regs[i] = 0; in pt_regs_to_gdb_regs()
35 gdb_regs[GDB_Y] = regs->y; in pt_regs_to_gdb_regs()
36 gdb_regs[GDB_PSR] = regs->psr; in pt_regs_to_gdb_regs()
37 gdb_regs[GDB_WIM] = 0; in pt_regs_to_gdb_regs()
38 gdb_regs[GDB_TBR] = (unsigned long) &trapbase; in pt_regs_to_gdb_regs()
[all …]
Dkgdb_64.c18 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
23 gdb_regs[GDB_G0] = 0; in pt_regs_to_gdb_regs()
25 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs()
29 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs()
31 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs()
34 gdb_regs[i] = 0; in pt_regs_to_gdb_regs()
36 gdb_regs[GDB_PC] = regs->tpc; in pt_regs_to_gdb_regs()
37 gdb_regs[GDB_NPC] = regs->tnpc; in pt_regs_to_gdb_regs()
38 gdb_regs[GDB_STATE] = regs->tstate; in pt_regs_to_gdb_regs()
39 gdb_regs[GDB_FSR] = 0; in pt_regs_to_gdb_regs()
[all …]
/linux-4.4.14/arch/mn10300/kernel/
Dkgdb.c32 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
36 gdb_regs[GDB_FR_D0] = regs->d0; in pt_regs_to_gdb_regs()
37 gdb_regs[GDB_FR_D1] = regs->d1; in pt_regs_to_gdb_regs()
38 gdb_regs[GDB_FR_D2] = regs->d2; in pt_regs_to_gdb_regs()
39 gdb_regs[GDB_FR_D3] = regs->d3; in pt_regs_to_gdb_regs()
40 gdb_regs[GDB_FR_A0] = regs->a0; in pt_regs_to_gdb_regs()
41 gdb_regs[GDB_FR_A1] = regs->a1; in pt_regs_to_gdb_regs()
42 gdb_regs[GDB_FR_A2] = regs->a2; in pt_regs_to_gdb_regs()
43 gdb_regs[GDB_FR_A3] = regs->a3; in pt_regs_to_gdb_regs()
44 gdb_regs[GDB_FR_SP] = (regs->epsw & EPSW_nSL) ? regs->sp : ssp; in pt_regs_to_gdb_regs()
[all …]
/linux-4.4.14/arch/arc/kernel/
Dkgdb.c16 static void to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *kernel_regs, in to_gdb_regs() argument
22 gdb_regs[_R0 + regno] = get_reg(regno, kernel_regs, cregs); in to_gdb_regs()
25 gdb_regs[regno] = 0; in to_gdb_regs()
27 gdb_regs[_FP] = kernel_regs->fp; in to_gdb_regs()
28 gdb_regs[__SP] = kernel_regs->sp; in to_gdb_regs()
29 gdb_regs[_BLINK] = kernel_regs->blink; in to_gdb_regs()
30 gdb_regs[_RET] = kernel_regs->ret; in to_gdb_regs()
31 gdb_regs[_STATUS32] = kernel_regs->status32; in to_gdb_regs()
32 gdb_regs[_LP_COUNT] = kernel_regs->lp_count; in to_gdb_regs()
33 gdb_regs[_LP_END] = kernel_regs->lp_end; in to_gdb_regs()
[all …]
/linux-4.4.14/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-4.4.14/arch/arm/kernel/
Dkgdb.c75 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) in sleeping_thread_to_gdb_regs() argument
86 gdb_regs[regno] = 0; in sleeping_thread_to_gdb_regs()
90 gdb_regs[_R4] = ti->cpu_context.r4; in sleeping_thread_to_gdb_regs()
91 gdb_regs[_R5] = ti->cpu_context.r5; in sleeping_thread_to_gdb_regs()
92 gdb_regs[_R6] = ti->cpu_context.r6; in sleeping_thread_to_gdb_regs()
93 gdb_regs[_R7] = ti->cpu_context.r7; in sleeping_thread_to_gdb_regs()
94 gdb_regs[_R8] = ti->cpu_context.r8; in sleeping_thread_to_gdb_regs()
95 gdb_regs[_R9] = ti->cpu_context.r9; in sleeping_thread_to_gdb_regs()
96 gdb_regs[_R10] = ti->cpu_context.sl; in sleeping_thread_to_gdb_regs()
97 gdb_regs[_FP] = ti->cpu_context.fp; in sleeping_thread_to_gdb_regs()
[all …]
/linux-4.4.14/arch/x86/kernel/
Dkgdb.c157 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
160 u32 *gdb_regs32 = (u32 *)gdb_regs; in sleeping_thread_to_gdb_regs()
162 gdb_regs[GDB_AX] = 0; in sleeping_thread_to_gdb_regs()
163 gdb_regs[GDB_BX] = 0; in sleeping_thread_to_gdb_regs()
164 gdb_regs[GDB_CX] = 0; in sleeping_thread_to_gdb_regs()
165 gdb_regs[GDB_DX] = 0; in sleeping_thread_to_gdb_regs()
166 gdb_regs[GDB_SI] = 0; in sleeping_thread_to_gdb_regs()
167 gdb_regs[GDB_DI] = 0; in sleeping_thread_to_gdb_regs()
168 gdb_regs[GDB_BP] = *(unsigned long *)p->thread.sp; in sleeping_thread_to_gdb_regs()
170 gdb_regs[GDB_DS] = __KERNEL_DS; in sleeping_thread_to_gdb_regs()
[all …]
/linux-4.4.14/kernel/debug/
Dgdbstub.c50 static unsigned long gdb_regs[(NUMREGBYTES + variable
341 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
345 char *ptr = (char *)gdb_regs; in pt_regs_to_gdb_regs()
353 void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) in gdb_regs_to_pt_regs() argument
357 char *ptr = (char *)gdb_regs; in gdb_regs_to_pt_regs()
523 pt_regs_to_gdb_regs(gdb_regs, local_debuggerinfo); in gdb_get_regs_helper()
532 sleeping_thread_to_gdb_regs(gdb_regs, thread); in gdb_get_regs_helper()
540 kgdb_mem2hex((char *)gdb_regs, remcom_out_buffer, NUMREGBYTES); in gdb_cmd_getregs()
546 kgdb_hex2mem(&remcom_in_buffer[1], (char *)gdb_regs, NUMREGBYTES); in gdb_cmd_setregs()
551 gdb_regs_to_pt_regs(gdb_regs, ks->linux_regs); in gdb_cmd_setregs()
[all …]
/linux-4.4.14/arch/nios2/kernel/
Dkgdb.c110 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
112 memset((char *)gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
113 gdb_regs[GDB_SP] = p->thread.kregs->sp; in sleeping_thread_to_gdb_regs()
114 gdb_regs[GDB_PC] = p->thread.kregs->ea; in sleeping_thread_to_gdb_regs()
/linux-4.4.14/arch/sh/kernel/
Dkgdb.c224 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
231 gdb_regs[reg] = 0; in sleeping_thread_to_gdb_regs()
241 gdb_regs[reg] = thread_regs->regs[reg]; in sleeping_thread_to_gdb_regs()
243 gdb_regs[GDB_R15] = p->thread.sp; in sleeping_thread_to_gdb_regs()
244 gdb_regs[GDB_PC] = p->thread.pc; in sleeping_thread_to_gdb_regs()
249 gdb_regs[GDB_PR] = thread_regs->pr; in sleeping_thread_to_gdb_regs()
250 gdb_regs[GDB_GBR] = thread_regs->gbr; in sleeping_thread_to_gdb_regs()
/linux-4.4.14/include/linux/
Dkgdb.h130 extern void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs);
145 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p);
155 extern void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs);
/linux-4.4.14/arch/hexagon/kernel/
Dkgdb.c151 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, in sleeping_thread_to_gdb_regs() argument
160 memset(gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
164 gdb_regs[0] = thread_regs->r00; in sleeping_thread_to_gdb_regs()
/linux-4.4.14/arch/tile/kernel/
Dkgdb.c126 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) in sleeping_thread_to_gdb_regs() argument
134 memset(gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
137 memcpy(gdb_regs, thread_regs, TREG_LAST_GPR * sizeof(unsigned long)); in sleeping_thread_to_gdb_regs()
138 gdb_regs[TILEGX_PC_REGNUM] = thread_regs->pc; in sleeping_thread_to_gdb_regs()
139 gdb_regs[TILEGX_FAULTNUM_REGNUM] = thread_regs->faultnum; in sleeping_thread_to_gdb_regs()
/linux-4.4.14/arch/arm64/kernel/
Dkgdb.c123 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) in sleeping_thread_to_gdb_regs() argument
128 memset((char *)gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
130 memcpy((void *)gdb_regs, (void *)thread_regs->regs, GP_REG_BYTES); in sleeping_thread_to_gdb_regs()
/linux-4.4.14/arch/powerpc/kernel/
Dkgdb.c220 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
224 unsigned long *ptr = gdb_regs; in sleeping_thread_to_gdb_regs()
227 memset(gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
260 (unsigned long)(((void *)gdb_regs) + NUMREGBYTES)); in sleeping_thread_to_gdb_regs()
/linux-4.4.14/arch/mips/kernel/
Dkgdb.c244 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
251 u32 *ptr = (u32 *)gdb_regs; in sleeping_thread_to_gdb_regs()
253 u64 *ptr = (u64 *)gdb_regs; in sleeping_thread_to_gdb_regs()
/linux-4.4.14/arch/mn10300/include/asm/
Dgdb-stub.h78 struct gdb_regs { struct