mirror of https://github.com/ARMmbed/mbed-os.git
Space optimization to fault handlers
parent
797538c854
commit
230ba03582
|
@ -148,10 +148,9 @@ Fault_Handler_Continue2
|
||||||
ADDS R1,#4
|
ADDS R1,#4
|
||||||
MRS R2,CONTROL ; Get CONTROL Reg
|
MRS R2,CONTROL ; Get CONTROL Reg
|
||||||
STR R2,[R1]
|
STR R2,[R1]
|
||||||
LDR R3,=mbed_fault_handler ; Load address of mbedFaultHandler
|
|
||||||
MOV R0,R12
|
MOV R0,R12
|
||||||
LDR R1,=mbed_fault_context
|
LDR R1,=mbed_fault_context
|
||||||
BLX R3
|
BL mbed_fault_handler
|
||||||
#endif
|
#endif
|
||||||
B . ; Just in case we come back here
|
B . ; Just in case we come back here
|
||||||
ENDP
|
ENDP
|
||||||
|
|
|
@ -181,10 +181,9 @@ Fault_Handler_Continue2:
|
||||||
ADDS R1,#4
|
ADDS R1,#4
|
||||||
MRS R2,CONTROL // Get CONTROL Reg
|
MRS R2,CONTROL // Get CONTROL Reg
|
||||||
STR R2,[R1]
|
STR R2,[R1]
|
||||||
LDR R3,=mbed_fault_handler // Load address of mbedFaultHandler
|
|
||||||
MOV R0,R12
|
MOV R0,R12
|
||||||
LDR R1,=mbed_fault_context
|
LDR R1,=mbed_fault_context
|
||||||
BLX R3
|
BL mbed_fault_handler
|
||||||
#endif
|
#endif
|
||||||
B . // Just in case we come back here
|
B . // Just in case we come back here
|
||||||
|
|
||||||
|
|
|
@ -143,10 +143,9 @@ Fault_Handler_Continue2
|
||||||
ADDS R1,#4
|
ADDS R1,#4
|
||||||
MRS R2,CONTROL ; Get CONTROL Reg
|
MRS R2,CONTROL ; Get CONTROL Reg
|
||||||
STR R2,[R1]
|
STR R2,[R1]
|
||||||
LDR R3,=mbed_fault_handler ; Load address of mbedFaultHandler
|
|
||||||
MOV R0,R12
|
MOV R0,R12
|
||||||
LDR R1,=mbed_fault_context
|
LDR R1,=mbed_fault_context
|
||||||
BLX R3
|
BL mbed_fault_handler
|
||||||
#endif
|
#endif
|
||||||
B . ; Just in case we come back here
|
B . ; Just in case we come back here
|
||||||
#endif ; #if (MBED_FAULT_HANDLER_SUPPORT == 1)
|
#endif ; #if (MBED_FAULT_HANDLER_SUPPORT == 1)
|
||||||
|
|
Loading…
Reference in New Issue