Space optimization to fault handlers

pull/8332/head
Senthil Ramakrishnan 2018-10-23 13:05:26 -05:00
parent 797538c854
commit 230ba03582
3 changed files with 3 additions and 6 deletions

View File

@ -148,10 +148,9 @@ Fault_Handler_Continue2
ADDS R1,#4
MRS R2,CONTROL ; Get CONTROL Reg
STR R2,[R1]
LDR R3,=mbed_fault_handler ; Load address of mbedFaultHandler
MOV R0,R12
LDR R1,=mbed_fault_context
BLX R3
BL mbed_fault_handler
#endif
B . ; Just in case we come back here
ENDP

View File

@ -181,10 +181,9 @@ Fault_Handler_Continue2:
ADDS R1,#4
MRS R2,CONTROL // Get CONTROL Reg
STR R2,[R1]
LDR R3,=mbed_fault_handler // Load address of mbedFaultHandler
MOV R0,R12
LDR R1,=mbed_fault_context
BLX R3
BL mbed_fault_handler
#endif
B . // Just in case we come back here

View File

@ -143,10 +143,9 @@ Fault_Handler_Continue2
ADDS R1,#4
MRS R2,CONTROL ; Get CONTROL Reg
STR R2,[R1]
LDR R3,=mbed_fault_handler ; Load address of mbedFaultHandler
MOV R0,R12
LDR R1,=mbed_fault_context
BLX R3
BL mbed_fault_handler
#endif
B . ; Just in case we come back here
#endif ; #if (MBED_FAULT_HANDLER_SUPPORT == 1)