startup.c 218 B

12345678910111213
  1. #include <rtthread.h>
  2. #if defined(__GNUC__)
  3. int rtthread_startup(void);
  4. static int start(void)
  5. {
  6. rtthread_startup();
  7. return 0;
  8. }
  9. __attribute__((section(".init_array"))) typeof(start) *__init = start;
  10. #endif