Lines Matching refs:gdb_regs
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()
25 gdb_regs[BFIN_P1] = regs->p1; in pt_regs_to_gdb_regs()
26 gdb_regs[BFIN_P2] = regs->p2; in pt_regs_to_gdb_regs()
27 gdb_regs[BFIN_P3] = regs->p3; in pt_regs_to_gdb_regs()
28 gdb_regs[BFIN_P4] = regs->p4; in pt_regs_to_gdb_regs()
29 gdb_regs[BFIN_P5] = regs->p5; in pt_regs_to_gdb_regs()
30 gdb_regs[BFIN_SP] = regs->reserved; in pt_regs_to_gdb_regs()
31 gdb_regs[BFIN_FP] = regs->fp; in pt_regs_to_gdb_regs()
32 gdb_regs[BFIN_I0] = regs->i0; in pt_regs_to_gdb_regs()
33 gdb_regs[BFIN_I1] = regs->i1; in pt_regs_to_gdb_regs()
34 gdb_regs[BFIN_I2] = regs->i2; in pt_regs_to_gdb_regs()
35 gdb_regs[BFIN_I3] = regs->i3; in pt_regs_to_gdb_regs()
36 gdb_regs[BFIN_M0] = regs->m0; in pt_regs_to_gdb_regs()
37 gdb_regs[BFIN_M1] = regs->m1; in pt_regs_to_gdb_regs()
38 gdb_regs[BFIN_M2] = regs->m2; in pt_regs_to_gdb_regs()
39 gdb_regs[BFIN_M3] = regs->m3; in pt_regs_to_gdb_regs()
40 gdb_regs[BFIN_B0] = regs->b0; in pt_regs_to_gdb_regs()
41 gdb_regs[BFIN_B1] = regs->b1; in pt_regs_to_gdb_regs()
42 gdb_regs[BFIN_B2] = regs->b2; in pt_regs_to_gdb_regs()
43 gdb_regs[BFIN_B3] = regs->b3; in pt_regs_to_gdb_regs()
44 gdb_regs[BFIN_L0] = regs->l0; in pt_regs_to_gdb_regs()
45 gdb_regs[BFIN_L1] = regs->l1; in pt_regs_to_gdb_regs()
46 gdb_regs[BFIN_L2] = regs->l2; in pt_regs_to_gdb_regs()
47 gdb_regs[BFIN_L3] = regs->l3; in pt_regs_to_gdb_regs()
48 gdb_regs[BFIN_A0_DOT_X] = regs->a0x; in pt_regs_to_gdb_regs()
49 gdb_regs[BFIN_A0_DOT_W] = regs->a0w; in pt_regs_to_gdb_regs()
50 gdb_regs[BFIN_A1_DOT_X] = regs->a1x; in pt_regs_to_gdb_regs()
51 gdb_regs[BFIN_A1_DOT_W] = regs->a1w; in pt_regs_to_gdb_regs()
52 gdb_regs[BFIN_ASTAT] = regs->astat; in pt_regs_to_gdb_regs()
53 gdb_regs[BFIN_RETS] = regs->rets; in pt_regs_to_gdb_regs()
54 gdb_regs[BFIN_LC0] = regs->lc0; in pt_regs_to_gdb_regs()
55 gdb_regs[BFIN_LT0] = regs->lt0; in pt_regs_to_gdb_regs()
56 gdb_regs[BFIN_LB0] = regs->lb0; in pt_regs_to_gdb_regs()
57 gdb_regs[BFIN_LC1] = regs->lc1; in pt_regs_to_gdb_regs()
58 gdb_regs[BFIN_LT1] = regs->lt1; in pt_regs_to_gdb_regs()
59 gdb_regs[BFIN_LB1] = regs->lb1; in pt_regs_to_gdb_regs()
60 gdb_regs[BFIN_CYCLES] = 0; in pt_regs_to_gdb_regs()
61 gdb_regs[BFIN_CYCLES2] = 0; in pt_regs_to_gdb_regs()
62 gdb_regs[BFIN_USP] = regs->usp; in pt_regs_to_gdb_regs()
63 gdb_regs[BFIN_SEQSTAT] = regs->seqstat; in pt_regs_to_gdb_regs()
64 gdb_regs[BFIN_SYSCFG] = regs->syscfg; in pt_regs_to_gdb_regs()
65 gdb_regs[BFIN_RETI] = regs->pc; in pt_regs_to_gdb_regs()
66 gdb_regs[BFIN_RETX] = regs->retx; in pt_regs_to_gdb_regs()
67 gdb_regs[BFIN_RETN] = regs->retn; in pt_regs_to_gdb_regs()
68 gdb_regs[BFIN_RETE] = regs->rete; in pt_regs_to_gdb_regs()
69 gdb_regs[BFIN_PC] = regs->pc; in pt_regs_to_gdb_regs()
70 gdb_regs[BFIN_CC] = (regs->astat >> 5) & 1; in pt_regs_to_gdb_regs()
71 gdb_regs[BFIN_EXTRA1] = 0; in pt_regs_to_gdb_regs()
72 gdb_regs[BFIN_EXTRA2] = 0; in pt_regs_to_gdb_regs()
73 gdb_regs[BFIN_EXTRA3] = 0; in pt_regs_to_gdb_regs()
74 gdb_regs[BFIN_IPEND] = regs->ipend; in pt_regs_to_gdb_regs()
84 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) in sleeping_thread_to_gdb_regs() argument
86 gdb_regs[BFIN_SP] = p->thread.ksp; in sleeping_thread_to_gdb_regs()
87 gdb_regs[BFIN_PC] = p->thread.pc; in sleeping_thread_to_gdb_regs()
88 gdb_regs[BFIN_SEQSTAT] = p->thread.seqstat; in sleeping_thread_to_gdb_regs()
91 void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) in gdb_regs_to_pt_regs() argument
93 regs->r0 = gdb_regs[BFIN_R0]; in gdb_regs_to_pt_regs()
94 regs->r1 = gdb_regs[BFIN_R1]; in gdb_regs_to_pt_regs()
95 regs->r2 = gdb_regs[BFIN_R2]; in gdb_regs_to_pt_regs()
96 regs->r3 = gdb_regs[BFIN_R3]; in gdb_regs_to_pt_regs()
97 regs->r4 = gdb_regs[BFIN_R4]; in gdb_regs_to_pt_regs()
98 regs->r5 = gdb_regs[BFIN_R5]; in gdb_regs_to_pt_regs()
99 regs->r6 = gdb_regs[BFIN_R6]; in gdb_regs_to_pt_regs()
100 regs->r7 = gdb_regs[BFIN_R7]; in gdb_regs_to_pt_regs()
101 regs->p0 = gdb_regs[BFIN_P0]; in gdb_regs_to_pt_regs()
102 regs->p1 = gdb_regs[BFIN_P1]; in gdb_regs_to_pt_regs()
103 regs->p2 = gdb_regs[BFIN_P2]; in gdb_regs_to_pt_regs()
104 regs->p3 = gdb_regs[BFIN_P3]; in gdb_regs_to_pt_regs()
105 regs->p4 = gdb_regs[BFIN_P4]; in gdb_regs_to_pt_regs()
106 regs->p5 = gdb_regs[BFIN_P5]; in gdb_regs_to_pt_regs()
107 regs->fp = gdb_regs[BFIN_FP]; in gdb_regs_to_pt_regs()
108 regs->i0 = gdb_regs[BFIN_I0]; in gdb_regs_to_pt_regs()
109 regs->i1 = gdb_regs[BFIN_I1]; in gdb_regs_to_pt_regs()
110 regs->i2 = gdb_regs[BFIN_I2]; in gdb_regs_to_pt_regs()
111 regs->i3 = gdb_regs[BFIN_I3]; in gdb_regs_to_pt_regs()
112 regs->m0 = gdb_regs[BFIN_M0]; in gdb_regs_to_pt_regs()
113 regs->m1 = gdb_regs[BFIN_M1]; in gdb_regs_to_pt_regs()
114 regs->m2 = gdb_regs[BFIN_M2]; in gdb_regs_to_pt_regs()
115 regs->m3 = gdb_regs[BFIN_M3]; in gdb_regs_to_pt_regs()
116 regs->b0 = gdb_regs[BFIN_B0]; in gdb_regs_to_pt_regs()
117 regs->b1 = gdb_regs[BFIN_B1]; in gdb_regs_to_pt_regs()
118 regs->b2 = gdb_regs[BFIN_B2]; in gdb_regs_to_pt_regs()
119 regs->b3 = gdb_regs[BFIN_B3]; in gdb_regs_to_pt_regs()
120 regs->l0 = gdb_regs[BFIN_L0]; in gdb_regs_to_pt_regs()
121 regs->l1 = gdb_regs[BFIN_L1]; in gdb_regs_to_pt_regs()
122 regs->l2 = gdb_regs[BFIN_L2]; in gdb_regs_to_pt_regs()
123 regs->l3 = gdb_regs[BFIN_L3]; in gdb_regs_to_pt_regs()
124 regs->a0x = gdb_regs[BFIN_A0_DOT_X]; in gdb_regs_to_pt_regs()
125 regs->a0w = gdb_regs[BFIN_A0_DOT_W]; in gdb_regs_to_pt_regs()
126 regs->a1x = gdb_regs[BFIN_A1_DOT_X]; in gdb_regs_to_pt_regs()
127 regs->a1w = gdb_regs[BFIN_A1_DOT_W]; in gdb_regs_to_pt_regs()
128 regs->rets = gdb_regs[BFIN_RETS]; in gdb_regs_to_pt_regs()
129 regs->lc0 = gdb_regs[BFIN_LC0]; in gdb_regs_to_pt_regs()
130 regs->lt0 = gdb_regs[BFIN_LT0]; in gdb_regs_to_pt_regs()
131 regs->lb0 = gdb_regs[BFIN_LB0]; in gdb_regs_to_pt_regs()
132 regs->lc1 = gdb_regs[BFIN_LC1]; in gdb_regs_to_pt_regs()
133 regs->lt1 = gdb_regs[BFIN_LT1]; in gdb_regs_to_pt_regs()
134 regs->lb1 = gdb_regs[BFIN_LB1]; in gdb_regs_to_pt_regs()
135 regs->usp = gdb_regs[BFIN_USP]; in gdb_regs_to_pt_regs()
136 regs->syscfg = gdb_regs[BFIN_SYSCFG]; in gdb_regs_to_pt_regs()
137 regs->retx = gdb_regs[BFIN_RETX]; in gdb_regs_to_pt_regs()
138 regs->retn = gdb_regs[BFIN_RETN]; in gdb_regs_to_pt_regs()
139 regs->rete = gdb_regs[BFIN_RETE]; in gdb_regs_to_pt_regs()
140 regs->pc = gdb_regs[BFIN_PC]; in gdb_regs_to_pt_regs()
143 regs->astat = gdb_regs[BFIN_ASTAT]; in gdb_regs_to_pt_regs()
144 regs->seqstat = gdb_regs[BFIN_SEQSTAT]; in gdb_regs_to_pt_regs()
145 regs->ipend = gdb_regs[BFIN_IPEND]; in gdb_regs_to_pt_regs()