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" {
2525/** \ingroup mbed-os-internal */
2626/** \addtogroup platform-internal-api */
2727/** @{*/
28- #if defined(__ARMCC_VERSION ) && ( __ARMCC_VERSION >= 6010050 )
28+ #if defined(__ARMCC_VERSION )
2929extern uint32_t Image$$RW_m_crash_data$$ZI$$Base [];
3030extern uint32_t Image$$RW_m_crash_data$$ZI$$Size ;
3131#define __CRASH_DATA_RAM_START__ Image$$RW_m_crash_data$$ZI$$Base
Original file line number Diff line number Diff line change 4747static SingletonPtr<PlatformMutex> _mutex;
4848
4949#if defined(__ARMCC_VERSION)
50- # if __ARMCC_VERSION >= 6010050
51- # include < arm_compat.h>
52- # endif
50+ # include < arm_compat.h>
5351# include < rt_sys.h>
5452# include < rt_misc.h>
5553# include < stdint.h>
5654# define PREFIX (x ) _sys##x
5755# define OPEN_MAX _SYS_OPEN
5856# ifdef __MICROLIB
59- # if __ARMCC_VERSION >= 6010050
6057asm (" .global __use_full_stdio\n " );
61- # else
62- # pragma import(__use_full_stdio)
63- # endif
6458# endif
6559
6660#elif defined(__ICCARM__)
@@ -803,7 +797,7 @@ MBED_WEAK int mbed::minimal_console_putc(int c)
803797}
804798#endif // MBED_CONF_PLATFORM_STDIO_MINIMAL_CONSOLE_ONLY
805799
806- #if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
800+ #if defined (__ARMCC_VERSION)
807801extern " C" void PREFIX (_exit)(int return_code)
808802{
809803 while (1 ) {}
@@ -1084,12 +1078,8 @@ extern "C" long PREFIX(_flen)(FILEHANDLE fh)
10841078#if !defined(COMPONENT_SPE) || !defined(TARGET_TFM)
10851079
10861080#if !defined(__MICROLIB)
1087- #if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
10881081__asm (" .global __use_two_region_memory\n\t " );
10891082__asm (" .global __use_no_semihosting\n\t " );
1090- #else
1091- #pragma import(__use_two_region_memory)
1092- #endif
10931083#endif
10941084
10951085// 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()
8686 With the RTOS there is not only one stack above the heap, there are multiple
8787 stacks and some of them are underneath the heap pointer.
8888*/
89- #if defined (__ARMCC_VERSION ) && ( __ARMCC_VERSION >= 6010050 )
89+ #if defined (__ARMCC_VERSION )
9090__asm(".global __use_two_region_memory\n\t" );
9191__asm(".global __use_no_semihosting\n\t" );
92- #else
93- #pragma import(__use_two_region_memory)
9492#endif
9593
9694#define LIBSPACE_SIZE 96
You can’t perform that action at this time.
0 commit comments