File tree Expand file tree Collapse file tree 3 files changed +4
-16
lines changed
rtos/source/TARGET_CORTEX/TOOLCHAIN_ARM_STD Expand file tree Collapse file tree 3 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ extern "C" {
25
25
/** \ingroup mbed-os-internal */
26
26
/** \addtogroup platform-internal-api */
27
27
/** @{*/
28
- #if defined(__ARMCC_VERSION ) && ( __ARMCC_VERSION >= 6010050 )
28
+ #if defined(__ARMCC_VERSION )
29
29
extern uint32_t Image$$RW_m_crash_data$$ZI$$Base [];
30
30
extern uint32_t Image$$RW_m_crash_data$$ZI$$Size ;
31
31
#define __CRASH_DATA_RAM_START__ Image$$RW_m_crash_data$$ZI$$Base
Original file line number Diff line number Diff line change 47
47
static SingletonPtr<PlatformMutex> _mutex;
48
48
49
49
#if defined(__ARMCC_VERSION)
50
- # if __ARMCC_VERSION >= 6010050
51
- # include < arm_compat.h>
52
- # endif
50
+ # include < arm_compat.h>
53
51
# include < rt_sys.h>
54
52
# include < rt_misc.h>
55
53
# include < stdint.h>
56
54
# define PREFIX (x ) _sys##x
57
55
# define OPEN_MAX _SYS_OPEN
58
56
# ifdef __MICROLIB
59
- # if __ARMCC_VERSION >= 6010050
60
57
asm (" .global __use_full_stdio\n " );
61
- # else
62
- # pragma import(__use_full_stdio)
63
- # endif
64
58
# endif
65
59
66
60
#elif defined(__ICCARM__)
@@ -803,7 +797,7 @@ MBED_WEAK int mbed::minimal_console_putc(int c)
803
797
}
804
798
#endif // MBED_CONF_PLATFORM_STDIO_MINIMAL_CONSOLE_ONLY
805
799
806
- #if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
800
+ #if defined (__ARMCC_VERSION)
807
801
extern " C" void PREFIX (_exit)(int return_code)
808
802
{
809
803
while (1 ) {}
@@ -1084,12 +1078,8 @@ extern "C" long PREFIX(_flen)(FILEHANDLE fh)
1084
1078
#if !defined(COMPONENT_SPE) || !defined(TARGET_TFM)
1085
1079
1086
1080
#if !defined(__MICROLIB)
1087
- #if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
1088
1081
__asm (" .global __use_two_region_memory\n\t " );
1089
1082
__asm (" .global __use_no_semihosting\n\t " );
1090
- #else
1091
- #pragma import(__use_two_region_memory)
1092
- #endif
1093
1083
#endif
1094
1084
1095
1085
// Through weak-reference, we can check if ARM_LIB_HEAP is defined at run-time.
Original file line number Diff line number Diff line change @@ -86,11 +86,9 @@ void mbed_toolchain_init()
86
86
With the RTOS there is not only one stack above the heap, there are multiple
87
87
stacks and some of them are underneath the heap pointer.
88
88
*/
89
- #if defined (__ARMCC_VERSION ) && ( __ARMCC_VERSION >= 6010050 )
89
+ #if defined (__ARMCC_VERSION )
90
90
__asm(".global __use_two_region_memory\n\t" );
91
91
__asm(".global __use_no_semihosting\n\t" );
92
- #else
93
- #pragma import(__use_two_region_memory)
94
92
#endif
95
93
96
94
#define LIBSPACE_SIZE 96
You can’t perform that action at this time.
0 commit comments