[Kernel] Add ARMCC 6.x support.

This commit is contained in:
Bernard Xiong
2018-09-23 12:08:44 +08:00
parent cf13f84c61
commit b98a0ba804
12 changed files with 40 additions and 20 deletions

View File

@@ -16,8 +16,11 @@
#include "rtthread.h"
#ifdef RT_USING_HEAP
#ifdef __CC_ARM
/* avoid the heap and heap-using library functions supplied by arm */
#pragma import(__use_no_heap)
#endif
void *malloc(size_t n)
{

View File

@@ -37,7 +37,11 @@
#include "dfs_posix.h"
#endif
#ifdef __CLANG_ARM
__asm(".global __use_no_semihosting\n\t");
#else
#pragma import(__use_no_semihosting_swi)
#endif
/* Standard IO device handles. */
#define STDIN 0