Skip to content

Commit 8ed9028

Browse files
committed
Revert "Move: startup the main() indirectly by gcc library function _start()"
This reverts commit d323a99.
1 parent afc52aa commit 8ed9028

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cores/arduino/cortex_handlers.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,7 @@ __attribute__ ((section(".isr_vector"))) const DeviceVectors exception_table =
459459

460460
#endif
461461

462-
/* GCC crt0 _start() will initialize C library then call main() */
463-
extern int _start(void);
462+
extern int main(void);
464463

465464
/* This is called on processor reset to initialize the device and call main() */
466465
void Reset_Handler(void)
@@ -491,7 +490,7 @@ void Reset_Handler(void)
491490

492491
SystemInit();
493492

494-
_start();
493+
main();
495494

496495
while (1)
497496
;

0 commit comments

Comments
 (0)