File tree 2 files changed +9
-8
lines changed 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 19
19
20
20
#ifndef __ASSEMBLY__
21
21
22
+ void arch_kgdb_breakpoint (void );
22
23
extern unsigned long kgdb_compiled_break ;
23
24
24
- static inline void arch_kgdb_breakpoint (void )
25
- {
26
- asm(".global kgdb_compiled_break\n"
27
- ".option norvc\n"
28
- "kgdb_compiled_break: ebreak\n"
29
- ".option rvc\n" );
30
- }
31
-
32
25
#endif /* !__ASSEMBLY__ */
33
26
34
27
#define DBG_REG_ZERO "zero"
Original file line number Diff line number Diff line change @@ -254,6 +254,14 @@ void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc)
254
254
regs -> epc = pc ;
255
255
}
256
256
257
+ noinline void arch_kgdb_breakpoint (void )
258
+ {
259
+ asm(".global kgdb_compiled_break\n"
260
+ ".option norvc\n"
261
+ "kgdb_compiled_break: ebreak\n"
262
+ ".option rvc\n" );
263
+ }
264
+
257
265
void kgdb_arch_handle_qxfer_pkt (char * remcom_in_buffer ,
258
266
char * remcom_out_buffer )
259
267
{
You can’t perform that action at this time.
0 commit comments