Searched refs:gdb_regs (Results 1 – 12 of 12) sorted by relevance
/arch/blackfin/kernel/ |
D | kgdb.c | 13 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument 15 gdb_regs[BFIN_R0] = regs->r0; in pt_regs_to_gdb_regs() 16 gdb_regs[BFIN_R1] = regs->r1; in pt_regs_to_gdb_regs() 17 gdb_regs[BFIN_R2] = regs->r2; in pt_regs_to_gdb_regs() 18 gdb_regs[BFIN_R3] = regs->r3; in pt_regs_to_gdb_regs() 19 gdb_regs[BFIN_R4] = regs->r4; in pt_regs_to_gdb_regs() 20 gdb_regs[BFIN_R5] = regs->r5; in pt_regs_to_gdb_regs() 21 gdb_regs[BFIN_R6] = regs->r6; in pt_regs_to_gdb_regs() 22 gdb_regs[BFIN_R7] = regs->r7; in pt_regs_to_gdb_regs() 23 gdb_regs[BFIN_P0] = regs->p0; in pt_regs_to_gdb_regs() [all …]
|
/arch/sparc/kernel/ |
D | kgdb_32.c | 16 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument 21 gdb_regs[GDB_G0] = 0; in pt_regs_to_gdb_regs() 23 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs() 27 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs() 29 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs() 32 gdb_regs[i] = 0; in pt_regs_to_gdb_regs() 34 gdb_regs[GDB_Y] = regs->y; in pt_regs_to_gdb_regs() 35 gdb_regs[GDB_PSR] = regs->psr; in pt_regs_to_gdb_regs() 36 gdb_regs[GDB_WIM] = 0; in pt_regs_to_gdb_regs() 37 gdb_regs[GDB_TBR] = (unsigned long) &trapbase; in pt_regs_to_gdb_regs() [all …]
|
D | kgdb_64.c | 15 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument 20 gdb_regs[GDB_G0] = 0; in pt_regs_to_gdb_regs() 22 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs() 26 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs() 28 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs() 31 gdb_regs[i] = 0; in pt_regs_to_gdb_regs() 33 gdb_regs[GDB_PC] = regs->tpc; in pt_regs_to_gdb_regs() 34 gdb_regs[GDB_NPC] = regs->tnpc; in pt_regs_to_gdb_regs() 35 gdb_regs[GDB_STATE] = regs->tstate; in pt_regs_to_gdb_regs() 36 gdb_regs[GDB_FSR] = 0; in pt_regs_to_gdb_regs() [all …]
|
/arch/mn10300/kernel/ |
D | kgdb.c | 32 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/microblaze/kernel/ |
D | kgdb.c | 36 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/ |
D | kgdb.c | 72 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) in sleeping_thread_to_gdb_regs() argument 83 gdb_regs[regno] = 0; in sleeping_thread_to_gdb_regs() 87 gdb_regs[_R0] = thread_regs->ARM_r0; in sleeping_thread_to_gdb_regs() 88 gdb_regs[_R1] = thread_regs->ARM_r1; in sleeping_thread_to_gdb_regs() 89 gdb_regs[_R2] = thread_regs->ARM_r2; in sleeping_thread_to_gdb_regs() 90 gdb_regs[_R3] = thread_regs->ARM_r3; in sleeping_thread_to_gdb_regs() 91 gdb_regs[_R4] = thread_regs->ARM_r4; in sleeping_thread_to_gdb_regs() 92 gdb_regs[_R5] = thread_regs->ARM_r5; in sleeping_thread_to_gdb_regs() 93 gdb_regs[_R6] = thread_regs->ARM_r6; in sleeping_thread_to_gdb_regs() 94 gdb_regs[_R7] = thread_regs->ARM_r7; in sleeping_thread_to_gdb_regs() [all …]
|
/arch/sh/kernel/ |
D | kgdb.c | 167 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument 172 gdb_regs[GDB_R0 + i] = regs->regs[i]; in pt_regs_to_gdb_regs() 174 gdb_regs[GDB_PC] = regs->pc; in pt_regs_to_gdb_regs() 175 gdb_regs[GDB_PR] = regs->pr; in pt_regs_to_gdb_regs() 176 gdb_regs[GDB_SR] = regs->sr; in pt_regs_to_gdb_regs() 177 gdb_regs[GDB_GBR] = regs->gbr; in pt_regs_to_gdb_regs() 178 gdb_regs[GDB_MACH] = regs->mach; in pt_regs_to_gdb_regs() 179 gdb_regs[GDB_MACL] = regs->macl; in pt_regs_to_gdb_regs() 181 __asm__ __volatile__ ("stc vbr, %0" : "=r" (gdb_regs[GDB_VBR])); in pt_regs_to_gdb_regs() 184 void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) in gdb_regs_to_pt_regs() argument [all …]
|
/arch/x86/kernel/ |
D | kgdb.c | 158 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument 161 u32 *gdb_regs32 = (u32 *)gdb_regs; in sleeping_thread_to_gdb_regs() 163 gdb_regs[GDB_AX] = 0; in sleeping_thread_to_gdb_regs() 164 gdb_regs[GDB_BX] = 0; in sleeping_thread_to_gdb_regs() 165 gdb_regs[GDB_CX] = 0; in sleeping_thread_to_gdb_regs() 166 gdb_regs[GDB_DX] = 0; in sleeping_thread_to_gdb_regs() 167 gdb_regs[GDB_SI] = 0; in sleeping_thread_to_gdb_regs() 168 gdb_regs[GDB_DI] = 0; in sleeping_thread_to_gdb_regs() 169 gdb_regs[GDB_BP] = *(unsigned long *)p->thread.sp; in sleeping_thread_to_gdb_regs() 171 gdb_regs[GDB_DS] = __KERNEL_DS; in sleeping_thread_to_gdb_regs() [all …]
|
/arch/hexagon/kernel/ |
D | kgdb.c | 147 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, in sleeping_thread_to_gdb_regs() argument 156 memset(gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs() 160 gdb_regs[0] = thread_regs->r00; in sleeping_thread_to_gdb_regs()
|
/arch/powerpc/kernel/ |
D | kgdb.c | 198 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument 202 unsigned long *ptr = gdb_regs; in sleeping_thread_to_gdb_regs() 205 memset(gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs() 238 (unsigned long)(((void *)gdb_regs) + NUMREGBYTES)); in sleeping_thread_to_gdb_regs()
|
/arch/mips/kernel/ |
D | kgdb.c | 236 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument 243 u32 *ptr = (u32 *)gdb_regs; in sleeping_thread_to_gdb_regs() 245 u64 *ptr = (u64 *)gdb_regs; in sleeping_thread_to_gdb_regs()
|
/arch/mn10300/include/asm/ |
D | gdb-stub.h | 78 struct gdb_regs { struct
|