From 6a2f1576ce185b44c31b0fd97f2cc5933a094998 Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Mon, 12 Dec 2016 16:08:43 -0800 Subject: Use more standard form of _init() --- bsp/env/freedom-e300-hifive1/init.c | 6 +++++- bsp/env/freedom-e300-hifive1/start.S | 7 ------- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'bsp/env/freedom-e300-hifive1') 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 -- cgit v1.2.3