Lines Matching +full:4 +full:- +full:temp
14 #include <asm/asm-offsets.h>
41 int temp; in pt_regs_to_gdb_regs() local
43 /* registers r0 - r31, pc, msr, ear, esr, fsr + do not save pt_mode */ in pt_regs_to_gdb_regs()
44 for (i = 0; i < (sizeof(struct pt_regs) / 4) - 1; i++) in pt_regs_to_gdb_regs()
48 __asm__ __volatile__ ("mfs %0, rbtr;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
49 gdb_regs[GDB_BTR] = temp; in pt_regs_to_gdb_regs()
51 /* pvr part - we have 11 pvr regs */ in pt_regs_to_gdb_regs()
52 for (i = 0; i < sizeof(struct pvr_s)/4; i++) in pt_regs_to_gdb_regs()
55 /* read special registers - can't be changed */ in pt_regs_to_gdb_regs()
56 __asm__ __volatile__ ("mfs %0, redr;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
57 gdb_regs[GDB_REDR] = temp; in pt_regs_to_gdb_regs()
58 __asm__ __volatile__ ("mfs %0, rpid;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
59 gdb_regs[GDB_RPID] = temp; in pt_regs_to_gdb_regs()
60 __asm__ __volatile__ ("mfs %0, rzpr;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
61 gdb_regs[GDB_RZPR] = temp; in pt_regs_to_gdb_regs()
62 __asm__ __volatile__ ("mfs %0, rtlbx;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
63 gdb_regs[GDB_RTLBX] = temp; in pt_regs_to_gdb_regs()
64 __asm__ __volatile__ ("mfs %0, rtlblo;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
65 gdb_regs[GDB_RTLBLO] = temp; in pt_regs_to_gdb_regs()
66 __asm__ __volatile__ ("mfs %0, rtlbhi;" : "=r"(temp) : ); in pt_regs_to_gdb_regs()
67 gdb_regs[GDB_RTLBHI] = temp; in pt_regs_to_gdb_regs()
78 for (i = 1; i < (sizeof(struct pt_regs) / 4) - 1; i++) in gdb_regs_to_pt_regs()
89 if (*(u32 *) (regs->pc) == *(u32 *) (&arch_kgdb_ops.gdb_bpt_instr)) in microblaze_kgdb_break()
90 regs->pc += BREAK_INSTR_SIZE; in microblaze_kgdb_break()
97 unsigned long *pt_regb = (unsigned long *)(p->thread.regs); in sleeping_thread_to_gdb_regs()
99 /* registers r0 - r31, pc, msr, ear, esr, fsr + do not save pt_mode */ in sleeping_thread_to_gdb_regs()
100 for (i = 0; i < (sizeof(struct pt_regs) / 4) - 1; i++) in sleeping_thread_to_gdb_regs()
103 /* pvr part - we have 11 pvr regs */ in sleeping_thread_to_gdb_regs()
104 for (i = 0; i < sizeof(struct pvr_s)/4; i++) in sleeping_thread_to_gdb_regs()
110 regs->pc = ip; in kgdb_arch_set_pc()
125 regs->pc = address; in kgdb_arch_handle_exception()
129 return -1; /* this means that we do not want to exit from the handler */ in kgdb_arch_handle_exception()