summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-09-20 13:45:09 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-09-22 07:59:05 +0200
commit3edf9cba67259c1f7bae7ddc57d0b1aa450a8a39 (patch)
treece66d6256d03ef7f119ff5124e1918689bde5777
parentbsps/arm: Add comment about banked FIQ registers (diff)
downloadrtems-3edf9cba67259c1f7bae7ddc57d0b1aa450a8a39.tar.bz2
bsps/arm: Move bsp_start_hook_0_done()
Declare bsp_start_hook_0_done() in <bsp/start.h>.
-rw-r--r--bsps/arm/include/bsp/start.h6
-rw-r--r--bsps/arm/tms570/start/bspstarthooks-hwinit.c2
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
@@ -73,6 +73,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.
*
* This hook will be called from the start entry code after copying of the
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 )
{