4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-01 19:10:26 +08:00

14 lines
218 B
C

#include <rtthread.h>
#if defined(__GNUC__)
int rtthread_startup(void);
static int start(void)
{
rtthread_startup();
return 0;
}
__attribute__((section(".init_array"))) typeof(start) *__init = start;
#endif