File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,13 @@ struct __arch_ftrace_regs {
146
146
unsigned long a5 ;
147
147
unsigned long a6 ;
148
148
unsigned long a7 ;
149
+ #ifdef CONFIG_CC_IS_CLANG
150
+ unsigned long t2 ;
151
+ unsigned long t3 ;
152
+ unsigned long t4 ;
153
+ unsigned long t5 ;
154
+ unsigned long t6 ;
155
+ #endif
149
156
};
150
157
};
151
158
};
Original file line number Diff line number Diff line change @@ -501,6 +501,13 @@ void asm_offsets(void)
501
501
DEFINE (FREGS_SP , offsetof(struct __arch_ftrace_regs , sp ));
502
502
DEFINE (FREGS_S0 , offsetof(struct __arch_ftrace_regs , s0 ));
503
503
DEFINE (FREGS_T1 , offsetof(struct __arch_ftrace_regs , t1 ));
504
+ #ifdef CONFIG_CC_IS_CLANG
505
+ DEFINE (FREGS_T2 , offsetof(struct __arch_ftrace_regs , t2 ));
506
+ DEFINE (FREGS_T3 , offsetof(struct __arch_ftrace_regs , t3 ));
507
+ DEFINE (FREGS_T4 , offsetof(struct __arch_ftrace_regs , t4 ));
508
+ DEFINE (FREGS_T5 , offsetof(struct __arch_ftrace_regs , t5 ));
509
+ DEFINE (FREGS_T6 , offsetof(struct __arch_ftrace_regs , t6 ));
510
+ #endif
504
511
DEFINE (FREGS_A0 , offsetof(struct __arch_ftrace_regs , a0 ));
505
512
DEFINE (FREGS_A1 , offsetof(struct __arch_ftrace_regs , a1 ));
506
513
DEFINE (FREGS_A2 , offsetof(struct __arch_ftrace_regs , a2 ));
Original file line number Diff line number Diff line change 96
96
REG_S x8, FREGS_S0(sp )
97
97
#endif
98
98
REG_S x6, FREGS_T1(sp )
99
-
99
+ #ifdef CONFIG_CC_IS_CLANG
100
+ REG_S x7, FREGS_T2(sp )
101
+ REG_S x28, FREGS_T3(sp )
102
+ REG_S x29, FREGS_T4(sp )
103
+ REG_S x30, FREGS_T5(sp )
104
+ REG_S x31, FREGS_T6(sp )
105
+ #endif
100
106
// save the arguments
101
107
REG_S x10, FREGS_A0(sp )
102
108
REG_S x11, FREGS_A1(sp )
115
121
REG_L x8, FREGS_S0(sp )
116
122
#endif
117
123
REG_L x6, FREGS_T1(sp )
118
-
124
+ #ifdef CONFIG_CC_IS_CLANG
125
+ REG_L x7, FREGS_T2(sp )
126
+ REG_L x28, FREGS_T3(sp )
127
+ REG_L x29, FREGS_T4(sp )
128
+ REG_L x30, FREGS_T5(sp )
129
+ REG_L x31, FREGS_T6(sp )
130
+ #endif
119
131
// restore the arguments
120
132
REG_L x10, FREGS_A0(sp )
121
133
REG_L x11, FREGS_A1(sp )
You can’t perform that action at this time.
0 commit comments