summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2024-09-15 15:07:00 +0800
committerSadeep Madurange <sadeep@asciimx.com>2024-09-15 15:07:00 +0800
commit9b8bc868509f3ec0fffcc85634e43535dc09b421 (patch)
tree0ac2ac526c2628043f96a0481ba4c748b6295c80 /main.c
parent177af7ea712d5fe70e1e96b453361db60dfffdab (diff)
downloadbare-metal-arduino-due-9b8bc868509f3ec0fffcc85634e43535dc09b421.tar.gz
Clean ups.
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/main.c b/main.c
index 71df022..3f00881 100644
--- a/main.c
+++ b/main.c
@@ -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 };