原始版本
This commit is contained in:
13
RT_Thread/libcpu/sim/posix/startup.c
Normal file
13
RT_Thread/libcpu/sim/posix/startup.c
Normal file
@ -0,0 +1,13 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user