File tree 6 files changed +8
-19
lines changed
cmsis/CMSIS_5/CMSIS/RTOS2/RTX
platform/source/TARGET_CORTEX_M 6 files changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,7 @@ if(${CMAKE_CROSSCOMPILING})
39
39
40
40
_mbed_get_cortex_a_exception_handlers()
41
41
42
- if (${MBED_TOOLCHAIN} STREQUAL "GCC_ARM" )
43
- _mbed_get_cortex_m_exception_handlers(TOOLCHAIN_GCC)
44
- elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
45
- _mbed_get_cortex_m_exception_handlers(TOOLCHAIN_ARM)
46
- endif ()
42
+ _mbed_get_cortex_m_exception_handlers(TOOLCHAIN_GCC)
47
43
endif ()
48
44
49
45
target_include_directories (mbed-rtos
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ SVC_ContextRestore:
102
102
SUBS R0 , R0 , # 32 // Adjust address
103
103
LDMIA R0! , {R4 - R7} // Restore R4..R7
104
104
105
- MOVS R0 , #~ 0xFFFFFFFD
105
+ MOVS R0 , # 2 // Binary complement of 0xFFFFFFFD
106
106
MVNS R0 , R0 // Set EXC_RETURN value
107
107
BX R0 // Exit from handler
108
108
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ SVC_ContextRestore:
102
102
SUBS R0 , R0 , # 32 // Adjust address
103
103
LDMIA R0! , {R4 - R7} // Restore R4..R7
104
104
105
- MOVS R0 , #~ 0xFFFFFFFD
105
+ MOVS R0 , # 2 // Binary complement of 0xFFFFFFFD
106
106
MVNS R0 , R0 // Set EXC_RETURN value
107
107
BX R0 // Exit from handler
108
108
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- if (${MBED_TOOLCHAIN} STREQUAL "GCC_ARM" )
5
- target_sources (mbed-core INTERFACE TOOLCHAIN_GCC/except.S)
6
- elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
7
- target_sources (mbed-core INTERFACE TOOLCHAIN_ARM/except.S)
8
- endif ()
4
+ target_sources (mbed-core INTERFACE TOOLCHAIN_GCC/except.S)
9
5
10
6
target_sources (mbed-core
11
7
INTERFACE
Original file line number Diff line number Diff line change @@ -105,7 +105,11 @@ UsageFault_Handler:
105
105
Fault_Handler:
106
106
#if (DOMAIN_NS == 1 )
107
107
#if MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED
108
+ #if defined(__ARMCC_VERSION)
109
+ #define mbed_fault_context Image $$ RW_m_crash_data $$ ZI $$ Base
110
+ #else
108
111
#define mbed_fault_context __CRASH_DATA_RAM_START__
112
+ #endif
109
113
#endif
110
114
111
115
MOV R12 , R3
Original file line number Diff line number Diff line change @@ -17,13 +17,6 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
17
17
)
18
18
endif ()
19
19
20
- # We'd like to use just "-mcpu=cortex-m55" in common_options, but due to a bug
21
- # in armclang passing options to armasm, we use the following flags as a
22
- # workaround to select M55.
23
- list (APPEND asm_compile_options
24
- -mcpu=cortex-r7
25
- -Wa,--cpu=cortex-m55
26
- )
27
20
28
21
function (mbed_set_cpu_core_definitions target )
29
22
target_compile_definitions (${target}
You can’t perform that action at this time.
0 commit comments