/arch/blackfin/kernel/ |
D | kgdb.c | 14 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/ |
D | kgdb_32.c | 18 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_Y] = regs->y; in pt_regs_to_gdb_regs() 37 gdb_regs[GDB_PSR] = regs->psr; in pt_regs_to_gdb_regs() 38 gdb_regs[GDB_WIM] = 0; in pt_regs_to_gdb_regs() 39 gdb_regs[GDB_TBR] = (unsigned long) &trapbase; in pt_regs_to_gdb_regs() [all …]
|
D | kgdb_64.c | 18 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/ |
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/arc/kernel/ |
D | kgdb.c | 16 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/ |
D | kgdb.c | 37 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/arm/kernel/ |
D | kgdb.c | 75 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 …]
|
/arch/x86/kernel/ |
D | kgdb.c | 159 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument 162 u32 *gdb_regs32 = (u32 *)gdb_regs; in sleeping_thread_to_gdb_regs() 164 gdb_regs[GDB_AX] = 0; in sleeping_thread_to_gdb_regs() 165 gdb_regs[GDB_BX] = 0; in sleeping_thread_to_gdb_regs() 166 gdb_regs[GDB_CX] = 0; in sleeping_thread_to_gdb_regs() 167 gdb_regs[GDB_DX] = 0; in sleeping_thread_to_gdb_regs() 168 gdb_regs[GDB_SI] = 0; in sleeping_thread_to_gdb_regs() 169 gdb_regs[GDB_DI] = 0; in sleeping_thread_to_gdb_regs() 170 gdb_regs[GDB_BP] = ((struct inactive_task_frame *)p->thread.sp)->bp; in sleeping_thread_to_gdb_regs() 172 gdb_regs[GDB_DS] = __KERNEL_DS; in sleeping_thread_to_gdb_regs() [all …]
|
/arch/h8300/kernel/ |
D | kgdb.c | 89 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/nios2/kernel/ |
D | kgdb.c | 110 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()
|
/arch/sh/kernel/ |
D | kgdb.c | 224 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/arm64/kernel/ |
D | kgdb.c | 137 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) in sleeping_thread_to_gdb_regs() argument 142 memset((char *)gdb_regs, 0, NUMREGBYTES); in sleeping_thread_to_gdb_regs() 144 memcpy((void *)gdb_regs, (void *)thread_regs->regs, GP_REG_BYTES); in sleeping_thread_to_gdb_regs() 146 dbg_get_reg(33, gdb_regs + GP_REG_BYTES, thread_regs); in sleeping_thread_to_gdb_regs()
|
/arch/hexagon/kernel/ |
D | kgdb.c | 151 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/tile/kernel/ |
D | kgdb.c | 126 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) in sleeping_thread_to_gdb_regs() argument 135 memcpy(gdb_regs, thread_regs, NGPRS * sizeof(unsigned long)); in sleeping_thread_to_gdb_regs() 136 memset(&gdb_regs[NGPRS], 0, 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()
|
/arch/powerpc/kernel/ |
D | kgdb.c | 220 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/ |
D | kgdb.c | 244 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/ |
D | gdb-stub.h | 78 struct gdb_regs { struct
|