summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
Diffstat (limited to 'bsp')
-rw-r--r--bsp/env/freedom-e300-hifive1/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bsp/env/freedom-e300-hifive1/init.c b/bsp/env/freedom-e300-hifive1/init.c
index 71e1659..fff1f2e 100644
--- a/bsp/env/freedom-e300-hifive1/init.c
+++ b/bsp/env/freedom-e300-hifive1/init.c
@@ -215,6 +215,10 @@ uintptr_t handle_trap(uintptr_t mcause, uintptr_t epc)
}
+#ifdef NO_INIT
+void _init() {
+}
+#else
void _init()
{
use_default_clocks();
@@ -229,6 +233,7 @@ void _init()
write_csr(fcsr, 0); // initialize rounding mode, undefined at reset
}
}
+#endif
void _fini()
{