diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2024-09-15 15:07:00 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2024-09-15 15:07:00 +0800 |
| commit | 9b8bc868509f3ec0fffcc85634e43535dc09b421 (patch) | |
| tree | 0ac2ac526c2628043f96a0481ba4c748b6295c80 /main.c | |
| parent | 177af7ea712d5fe70e1e96b453361db60dfffdab (diff) | |
| download | bare-metal-arduino-due-9b8bc868509f3ec0fffcc85634e43535dc09b421.tar.gz | |
Clean ups.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -38,7 +38,7 @@ int main(void) return 0; } -__attribute__((noreturn)) void _rst_handler(void) { +__attribute__((noreturn)) void _reset(void) { unsigned long *dst, *src; extern unsigned long _sbss, _ebss, _sdata, _edata, _sidata; @@ -49,14 +49,8 @@ __attribute__((noreturn)) void _rst_handler(void) { *dst++ = *src++; main(); - - for (;;) - ; } extern const unsigned int _sp; -__attribute__ ((section(".vtor"))) const void* _tab[] = { - &_sp, - _rst_handler -}; +__attribute__ ((section(".vtor"))) const void* _tab[] = { &_sp, _reset }; |
