Home
last modified time | relevance | path

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

/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/arch/h8300/kernel/
Dkgdb.c89 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
91 memset((char *)gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
92 gdb_regs[GDB_SP] = p->thread.ksp; in sleeping_thread_to_gdb_regs()
93 gdb_regs[GDB_PC] = KSTK_EIP(p); in sleeping_thread_to_gdb_regs()
/arch/parisc/kernel/
Dkgdb.c62 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
64 struct parisc_gdb_regs *gr = (struct parisc_gdb_regs *)gdb_regs; in pt_regs_to_gdb_regs()
94 void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) in gdb_regs_to_pt_regs() argument
96 struct parisc_gdb_regs *gr = (struct parisc_gdb_regs *)gdb_regs; in gdb_regs_to_pt_regs()
125 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, in sleeping_thread_to_gdb_regs() argument
136 pt_regs_to_gdb_regs(gdb_regs, regs); in sleeping_thread_to_gdb_regs()
/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()
/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()
/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()
/arch/powerpc/kernel/
Dkgdb.c194 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
198 unsigned long *ptr = gdb_regs; in sleeping_thread_to_gdb_regs()
201 memset(gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs()
234 (unsigned long)(((void *)gdb_regs) + NUMREGBYTES)); in sleeping_thread_to_gdb_regs()
/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()