diff options
author | mwachs5 <megan@sifive.com> | 2017-01-11 12:30:45 -0800 |
---|---|---|
committer | mwachs5 <megan@sifive.com> | 2017-01-11 12:30:45 -0800 |
commit | 1c14a9005346a5d74eb039f64b12427ab901c2d1 (patch) | |
tree | 63542fc7a39e73dfee105dec5b3cc85a4d2311b9 /bsp | |
parent | 57983086991b12a0c8caf707e5f0b810c3a49647 (diff) |
Add the 'bootloader' which ships on HiFive1 Boards.
Diffstat (limited to 'bsp')
-rw-r--r-- | bsp/env/freedom-e300-hifive1/init.c | 5 |
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() { |