Skip to content

Commit 4f3f0cc

Browse files
committed
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
1 parent 91afbce commit 4f3f0cc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/rtl8195a_init.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,11 @@ void PLAT_Main(void)
270270
#else
271271
__asm ("ldr r0, =SystemInit \n"
272272
"blx r0 \n"
273+
#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
274+
"ldr r0, =__main \n"
275+
#else
273276
"ldr r0, =_start \n"
277+
#endif
274278
"bx r0 \n"
275279
);
276280
#endif

targets/TARGET_Realtek/mbed_rtx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include "rtl8195a.h"
2222

23-
#if defined(__CC_ARM)
23+
#if defined(__CC_ARM) || (defined(__ARMCC_VERSION) || (__ARMCC_VERSION >= 6010050))
2424
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
2525
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
2626
#define ISR_STACK_START (unsigned char *)(Image$$ARM_LIB_STACK$$ZI$$Base)

0 commit comments

Comments
 (0)