File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ static inline bool is_implicit_soft_masked(struct pt_regs *regs)
106106 return search_kernel_soft_mask_table (regs -> nip );
107107}
108108
109- static inline void srr_regs_clobbered (void )
109+ static __always_inline void srr_regs_clobbered (void )
110110{
111111 local_paca -> srr_valid = 0 ;
112112 local_paca -> hsrr_valid = 0 ;
Original file line number Diff line number Diff line change 1414
1515#include <linux/types.h>
1616#include <linux/export.h>
17+ #include <asm/interrupt.h>
1718
1819/* lv1 call declaration macros */
1920
208209#define LV1_CALL (name , in , out , num ) \
209210 extern s64 _lv1_##name(LV1_##in##_IN_##out##_OUT_ARG_DECL); \
210211 static inline int lv1_##name(LV1_##in##_IN_##out##_OUT_ARG_DECL) \
211- {return _lv1_##name(LV1_##in##_IN_##out##_OUT_ARGS);}
212+ {srr_regs_clobbered(); return _lv1_##name(LV1_##in##_IN_##out##_OUT_ARGS);}
212213#endif
213214
214215#endif /* !defined(__ASSEMBLER__) */
You can’t perform that action at this time.
0 commit comments