20
20
21
21
#include "PRCv14.h"
22
22
23
- #include "gdb.h"
24
-
25
23
/* this struct is used by the assembley-level file 'gdb.s'
26
24
* and must stay in this specific order
27
25
*/
@@ -68,7 +66,7 @@ struct svc_args
68
66
*
69
67
*/
70
68
void _gdb_break ( struct svc_args * regs )
71
- __attribute__ ((noinline ,used , section ( "gdb" ) ));
69
+ __attribute__ ((noinline ,used ));
72
70
73
71
/**
74
72
* High-level (C) function called in reponse to a "halt" interrupt
@@ -77,7 +75,7 @@ void _gdb_break( struct svc_args * regs)
77
75
* @regs: a copy of the processor registers as the existed pre-halt
78
76
*/
79
77
void _gdb_halt ( struct svc_args * regs )
80
- __attribute__ ((noinline ,used , section ( "gdb" ) ));
78
+ __attribute__ ((noinline ,used ));
81
79
82
80
/**
83
81
* writes a 32-bit message over MBUS
@@ -89,7 +87,7 @@ void _gdb_halt( struct svc_args * regs)
89
87
* @data the 32-bit data to be written
90
88
*/
91
89
uint32_t _gdb_mbus_write_message32 (uint32_t addr , uint32_t data )
92
- __attribute__ ((used , section ( "gdb" ) ));
90
+ __attribute__ ((used ));
93
91
94
92
95
93
@@ -160,7 +158,7 @@ void _gdb_break( struct svc_args * regs)
160
158
}
161
159
162
160
//so we can soft-step into mbus_write_message32
163
- uint32_t gdb_mbus_write_message32 (uint32_t addr , uint32_t data ) {
161
+ uint32_t _gdb_mbus_write_message32 (uint32_t addr , uint32_t data ) {
164
162
uint32_t mbus_addr = 0xA0003000 | (addr << 4 );
165
163
* ((volatile uint32_t * ) mbus_addr ) = data ;
166
164
return 1 ;
0 commit comments