Make Realtek link

There was some interesting stuff here.
 * ARMC6 treats assembly the same as GNU, but has a different startup
   function, so we branch the asm there
 * Incorrect discriminant, probably copied from other ports
pull/4949/head
Jimmy Brisson 2017-08-30 10:21:10 -05:00
parent 91afbce18a
commit 4f3f0cc9cc
2 changed files with 5 additions and 1 deletions

View File

@ -270,7 +270,11 @@ void PLAT_Main(void)
#else
__asm ("ldr r0, =SystemInit \n"
"blx r0 \n"
#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
"ldr r0, =__main \n"
#else
"ldr r0, =_start \n"
#endif
"bx r0 \n"
);
#endif

View File

@ -20,7 +20,7 @@
#include "rtl8195a.h"
#if defined(__CC_ARM)
#if defined(__CC_ARM) || (defined(__ARMCC_VERSION) || (__ARMCC_VERSION >= 6010050))
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
#define ISR_STACK_START (unsigned char *)(Image$$ARM_LIB_STACK$$ZI$$Base)