diff options
author | Megan Wachs <megan@sifive.com> | 2016-12-12 16:08:43 -0800 |
---|---|---|
committer | Albert Ou <albert@sifive.com> | 2016-12-13 17:53:56 -0800 |
commit | 6a2f1576ce185b44c31b0fd97f2cc5933a094998 (patch) | |
tree | 69d70f2a4b99a13b398f7cc36bead0e87d15d621 /bsp | |
parent | 546b9e62d3efd2c4dd021f5592d04c1c98ceda7f (diff) |
Use more standard form of _init()
Diffstat (limited to 'bsp')
-rw-r--r-- | bsp/env/freedom-e300-hifive1/init.c | 6 | ||||
-rw-r--r-- | bsp/env/freedom-e300-hifive1/start.S | 7 |
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 |