13 #include <asm/cacheflush.h>
14 #include <asm/asm-offsets.h>
39 unsigned long *pt_regb = (
unsigned long *)regs;
42 for (i = 0; i < (
sizeof(
struct pt_regs) / 4) - 1; i++)
43 gdb_regs[i] = pt_regb[i];
46 __asm__ __volatile__ (
"mfs %0, rbtr;" :
"=r"(temp) : );
50 for (i = 0; i <
sizeof(
struct pvr_s)/4; i++)
54 __asm__ __volatile__ (
"mfs %0, redr;" :
"=r"(temp) : );
56 __asm__ __volatile__ (
"mfs %0, rpid;" :
"=r"(temp) : );
58 __asm__ __volatile__ (
"mfs %0, rzpr;" :
"=r"(temp) : );
60 __asm__ __volatile__ (
"mfs %0, rtlbx;" :
"=r"(temp) : );
62 __asm__ __volatile__ (
"mfs %0, rtlblo;" :
"=r"(temp) : );
64 __asm__ __volatile__ (
"mfs %0, rtlbhi;" :
"=r"(temp) : );
71 unsigned long *pt_regb = (
unsigned long *)regs;
76 for (i = 1; i < (
sizeof(
struct pt_regs) / 4) - 1; i++)
77 pt_regb[i] = gdb_regs[i];
95 unsigned long *pt_regb = (
unsigned long *)(p->
thread.regs);
98 for (i = 0; i < (
sizeof(
struct pt_regs) / 4) - 1; i++)
99 gdb_regs[i] = pt_regb[i];
102 for (i = 0; i <
sizeof(
struct pvr_s)/4; i++)
112 char *remcom_in_buffer,
char *remcom_out_buffer,
118 switch (remcom_in_buffer[0]) {
121 ptr = &remcom_in_buffer[1];
145 #ifdef __MICROBLAZEEL__
146 .gdb_bpt_instr = {0x18, 0x00, 0x0c, 0xba},
148 .gdb_bpt_instr = {0xba, 0x0c, 0x00, 0x18},