Home
last modified time | relevance | path

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

/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 …]
/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 …]
/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 …]
/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 …]
/arch/microblaze/kernel/
Dkgdb.c36 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
43 gdb_regs[i] = pt_regb[i]; in pt_regs_to_gdb_regs()
47 gdb_regs[GDB_BTR] = temp; in pt_regs_to_gdb_regs()
51 gdb_regs[GDB_PVR + i] = pvr.pvr[i]; in pt_regs_to_gdb_regs()
55 gdb_regs[GDB_REDR] = temp; in pt_regs_to_gdb_regs()
57 gdb_regs[GDB_RPID] = temp; in pt_regs_to_gdb_regs()
59 gdb_regs[GDB_RZPR] = temp; in pt_regs_to_gdb_regs()
61 gdb_regs[GDB_RTLBX] = temp; in pt_regs_to_gdb_regs()
63 gdb_regs[GDB_RTLBLO] = temp; in pt_regs_to_gdb_regs()
65 gdb_regs[GDB_RTLBHI] = temp; in pt_regs_to_gdb_regs()
[all …]
/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[_R0] = thread_regs->ARM_r0; in sleeping_thread_to_gdb_regs()
92 gdb_regs[_R1] = thread_regs->ARM_r1; in sleeping_thread_to_gdb_regs()
93 gdb_regs[_R2] = thread_regs->ARM_r2; in sleeping_thread_to_gdb_regs()
94 gdb_regs[_R3] = thread_regs->ARM_r3; in sleeping_thread_to_gdb_regs()
95 gdb_regs[_R4] = thread_regs->ARM_r4; in sleeping_thread_to_gdb_regs()
96 gdb_regs[_R5] = thread_regs->ARM_r5; in sleeping_thread_to_gdb_regs()
97 gdb_regs[_R6] = thread_regs->ARM_r6; in sleeping_thread_to_gdb_regs()
98 gdb_regs[_R7] = thread_regs->ARM_r7; in sleeping_thread_to_gdb_regs()
[all …]
/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 …]
/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()
/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()
/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()
/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
130 unsigned long *ptr = gdb_regs; in sleeping_thread_to_gdb_regs()
136 memset(gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
142 gdb_regs[TILEGX_PC_REGNUM] = thread_regs->pc; in sleeping_thread_to_gdb_regs()
143 gdb_regs[TILEGX_FAULTNUM_REGNUM] = thread_regs->faultnum; in sleeping_thread_to_gdb_regs()
/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()
/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
248 u32 *ptr = (u32 *)gdb_regs; in sleeping_thread_to_gdb_regs()
250 u64 *ptr = (u64 *)gdb_regs; in sleeping_thread_to_gdb_regs()
/arch/mn10300/include/asm/
Dgdb-stub.h78 struct gdb_regs { struct