File tree Expand file tree Collapse file tree 5 files changed +9
-18
lines changed Expand file tree Collapse file tree 5 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ UsageFault_Handler\
68
68
Fault_Handler PROC
69
69
EXPORT Fault_Handler
70
70
#if (DOMAIN_NS == 1 )
71
- IMPORT osRtxInfo
72
71
IMPORT mbed_fault_handler
73
72
IMPORT mbed_fault_context
74
73
@@ -149,11 +148,9 @@ Fault_Handler_Continue2
149
148
ADDS R1 , # 4
150
149
MRS R2 , CONTROL ; Get CONTROL Reg
151
150
STR R2 ,[ R1 ]
152
- LDR R3 , =mbed_fault_handler ; Load address of mbedFaultHandler
153
151
MOV R0 , R12
154
152
LDR R1 , =mbed_fault_context
155
- LDR R2 , =osRtxInfo
156
- BLX R3
153
+ BL mbed_fault_handler
157
154
#endif
158
155
B . ; Just in case we come back here
159
156
ENDP
Original file line number Diff line number Diff line change @@ -181,11 +181,9 @@ Fault_Handler_Continue2:
181
181
ADDS R1 , # 4
182
182
MRS R2 , CONTROL // Get CONTROL Reg
183
183
STR R2 ,[ R1 ]
184
- LDR R3 , =mbed_fault_handler // Load address of mbedFaultHandler
185
184
MOV R0 , R12
186
185
LDR R1 , =mbed_fault_context
187
- LDR R2 , =osRtxInfo
188
- BLX R3
186
+ BL mbed_fault_handler
189
187
#endif
190
188
B . // Just in case we come back here
191
189
Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ UsageFault_Handler
63
63
Fault_Handler
64
64
EXPORT Fault_Handler
65
65
#if (DOMAIN_NS == 1 )
66
- IMPORT osRtxInfo
67
66
IMPORT mbed_fault_context
68
67
IMPORT mbed_fault_handler
69
68
@@ -144,11 +143,9 @@ Fault_Handler_Continue2
144
143
ADDS R1 , # 4
145
144
MRS R2 , CONTROL ; Get CONTROL Reg
146
145
STR R2 ,[ R1 ]
147
- LDR R3 , =mbed_fault_handler ; Load address of mbedFaultHandler
148
146
MOV R0 , R12
149
147
LDR R1 , =mbed_fault_context
150
- LDR R2 , =osRtxInfo
151
- BLX R3
148
+ BL mbed_fault_handler
152
149
#endif
153
150
B . ; Just in case we come back here
154
151
#endif ; #if (MBED_FAULT_HANDLER_SUPPORT == 1)
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- #include "rtx_os.h"
18
17
#include "device.h"
19
18
#include "platform/mbed_error.h"
20
19
#include "platform/mbed_interface.h"
21
20
22
21
#ifndef MBED_FAULT_HANDLER_DISABLED
23
- #include "mbed_rtx_fault_handler .h"
22
+ #include "mbed_fault_handler .h"
24
23
25
24
//Functions Prototypes
26
25
void print_context_info (void );
@@ -30,7 +29,7 @@ mbed_fault_context_t mbed_fault_context;
30
29
31
30
//This is a handler function called from Fault handler to print the error information out.
32
31
//This runs in fault context and uses special functions(defined in mbed_rtx_fault_handler.c) to print the information without using C-lib support.
33
- void mbed_fault_handler (uint32_t fault_type , void * mbed_fault_context_in , void * osRtxInfoIn )
32
+ void mbed_fault_handler (uint32_t fault_type , void * mbed_fault_context_in )
34
33
{
35
34
mbed_error_status_t faultStatus = MBED_SUCCESS ;
36
35
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- #ifndef MBED_RTX_FAULT_HANDLER_H
18
- #define MBED_RTX_FAULT_HANDLER_H
17
+ #ifndef MBED_FAULT_HANDLER_H
18
+ #define MBED_FAULT_HANDLER_H
19
19
20
20
//Fault context struct
21
21
//WARNING: DO NOT CHANGE THIS STRUCT WITHOUT MAKING CORRESPONDING CHANGES in except.S files.
@@ -52,7 +52,7 @@ typedef struct {
52
52
#define USAGE_FAULT_EXCEPTION (0x40)
53
53
54
54
//This is a handler function called from Fault handler to print the error information out.
55
- //This runs in fault context and uses special functions(defined in mbed_rtx_fault_handler .c) to print the information without using C-lib support.
56
- void mbed_fault_handler (uint32_t fault_type , void * mbed_fault_context_in , void * osRtxInfoIn );
55
+ //This runs in fault context and uses special functions(defined in mbed_fault_handler .c) to print the information without using C-lib support.
56
+ void mbed_fault_handler (uint32_t fault_type , void * mbed_fault_context_in );
57
57
58
58
#endif
You can’t perform that action at this time.
0 commit comments