[rtems commit] bsps/arm: Move bsp_start_hook_0_done()

Sebastian Huber sebh at rtems.org
Thu Sep 22 05:55:16 UTC 2022


Module:    rtems
Branch:    master
Commit:    3edf9cba67259c1f7bae7ddc57d0b1aa450a8a39
Changeset: http://git.rtems.org/rtems/commit/?id=3edf9cba67259c1f7bae7ddc57d0b1aa450a8a39

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Sep 20 13:45:09 2022 +0200

bsps/arm: Move bsp_start_hook_0_done()

Declare bsp_start_hook_0_done() in <bsp/start.h>.

---

 bsps/arm/include/bsp/start.h                 | 6 ++++++
 bsps/arm/tms570/start/bspstarthooks-hwinit.c | 2 --
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/bsps/arm/include/bsp/start.h b/bsps/arm/include/bsp/start.h
index e10c2e5df7..a7114f1086 100644
--- a/bsps/arm/include/bsp/start.h
+++ b/bsps/arm/include/bsp/start.h
@@ -72,6 +72,12 @@ void _start(void);
 */
 void bsp_start_hook_0(void);
 
+/**
+* @brief Can be used by bsp_start_hook_0() to jump back to the start code
+*   instead of using the link register.
+*/
+void bsp_start_hook_0_done(void);
+
 /**
 * @brief Start entry hook 1.
 *
diff --git a/bsps/arm/tms570/start/bspstarthooks-hwinit.c b/bsps/arm/tms570/start/bspstarthooks-hwinit.c
index 660c87f08d..407ab142ff 100644
--- a/bsps/arm/tms570/start/bspstarthooks-hwinit.c
+++ b/bsps/arm/tms570/start/bspstarthooks-hwinit.c
@@ -7,8 +7,6 @@
 #include <bsp/tms570_selftest_parity.h>
 #include <bsp/tms570_hwinit.h>
 
-void bsp_start_hook_0_done( void );
-
 static inline
 int tms570_running_from_tcram( void )
 {



More information about the vc mailing list