You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/11/05 09:06:36 UTC

[GitHub] kasjer closed pull request #1504: fe310: Fix build after _init was added

kasjer closed pull request #1504: fe310: Fix build after _init was added
URL: https://github.com/apache/mynewt-core/pull/1504
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/hw/mcu/sifive/fe310/src/arch/rv32imac/start.s b/hw/mcu/sifive/fe310/src/arch/rv32imac/start.s
index 65946c785c..4184fb7082 100644
--- a/hw/mcu/sifive/fe310/src/arch/rv32imac/start.s
+++ b/hw/mcu/sifive/fe310/src/arch/rv32imac/start.s
@@ -67,7 +67,7 @@ _reset_handler:
     call atexit
     call __libc_init_array
 
-    call _init
+    call SystemInit
     call _start
     call _fini
     tail exit
diff --git a/hw/mcu/sifive/fe310/src/init.c b/hw/mcu/sifive/fe310/src/init.c
index 877d98db5f..6870cbc56f 100644
--- a/hw/mcu/sifive/fe310/src/init.c
+++ b/hw/mcu/sifive/fe310/src/init.c
@@ -29,7 +29,7 @@ volatile int test;
 
 /* Function called just before main() */
 void
-_init()
+SystemInit(void)
 {
     select_clock(&MYNEWT_VAL(SYS_CLOCK));
 }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services