[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
+2 -2
View File
@@ -136,7 +136,7 @@ void rt_application_init(void);
void rt_hw_board_init(void);
int rtthread_startup(void);
#if defined (__CC_ARM)
#if defined(__CC_ARM) || defined(__CLANG_ARM)
extern int $Super$$main(void);
/* re-define main function */
int $Sub$$main(void)
@@ -185,7 +185,7 @@ void main_thread_entry(void *parameter)
rt_components_init();
/* invoke system main function */
#if defined (__CC_ARM)
#if defined(__CC_ARM) || defined(__CLANG_ARM)
$Super$$main(); /* for ARMCC. */
#elif defined(__ICCARM__) || defined(__GNUC__)
main();