summaryrefslogtreecommitdiff
path: root/bsp/env/freedom-e300-hifive1
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/env/freedom-e300-hifive1')
-rw-r--r--bsp/env/freedom-e300-hifive1/init.c6
-rw-r--r--bsp/env/freedom-e300-hifive1/start.S7
2 files changed, 5 insertions, 8 deletions
diff --git a/bsp/env/freedom-e300-hifive1/init.c b/bsp/env/freedom-e300-hifive1/init.c
index 05faeea..268d41e 100644
--- a/bsp/env/freedom-e300-hifive1/init.c
+++ b/bsp/env/freedom-e300-hifive1/init.c
@@ -188,5 +188,9 @@ void _init()
write_csr(fcsr, 0); // initialize rounding mode, undefined at reset
}
- _exit(main(0, NULL));
+ //_exit(main(0, NULL));
+}
+
+void _fini()
+{
}
diff --git a/bsp/env/freedom-e300-hifive1/start.S b/bsp/env/freedom-e300-hifive1/start.S
index 2388ec0..77e223d 100644
--- a/bsp/env/freedom-e300-hifive1/start.S
+++ b/bsp/env/freedom-e300-hifive1/start.S
@@ -49,10 +49,3 @@ _start:
call main
tail exit
-
- /* init_array/fini_array are used instead */
- .globl _init
- .globl _fini
-_init:
-_fini:
- ret