diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-12-21 09:40:50 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-12-23 09:19:28 +0100 |
commit | 46a3c0446f6a18ca1fa9e6995504bc7291d66495 (patch) | |
tree | 2433ae7c30d6374ab3a3a1e0b9a11ddb66a1e52c /bsps/arm/include | |
parent | bsps/arm: Invalidate branch predictors earlier (diff) | |
download | rtems-46a3c0446f6a18ca1fa9e6995504bc7291d66495.tar.bz2 |
bsps/arm: Remove optional start hook arguments
The start hook arguments are not used by a BSP. Removing them avoids
the need for a stack during the very early system initialization.
Update #4202.
Diffstat (limited to 'bsps/arm/include')
-rw-r--r-- | bsps/arm/include/bsp/start.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/bsps/arm/include/bsp/start.h b/bsps/arm/include/bsp/start.h index 0a5ce2ab62..b5d1de942c 100644 --- a/bsps/arm/include/bsp/start.h +++ b/bsps/arm/include/bsp/start.h @@ -45,15 +45,6 @@ extern "C" { #define BSP_START_DATA_SECTION __attribute__((section(".bsp_start_data"))) -/* -* Many ARM boot loaders pass arguments to loaded OS kernel -*/ -#ifdef BSP_START_HOOKS_WITH_LOADER_ARGS -#define BSP_START_HOOKS_LOADER_ARGS int saved_psr, int saved_machid, int saved_dtb_adr -#else -#define BSP_START_HOOKS_LOADER_ARGS void -#endif - /** * @brief System start entry. */ @@ -66,7 +57,7 @@ void _start(void); * stack pointers are initialized but before the copying of the exception * vectors. */ -void bsp_start_hook_0(BSP_START_HOOKS_LOADER_ARGS); +void bsp_start_hook_0(void); /** * @brief Start entry hook 1. @@ -74,7 +65,7 @@ void bsp_start_hook_0(BSP_START_HOOKS_LOADER_ARGS); * This hook will be called from the start entry code after copying of the * exception vectors but before the call to boot_card(). */ -void bsp_start_hook_1(BSP_START_HOOKS_LOADER_ARGS); +void bsp_start_hook_1(void); /** * @brief Similar to standard memcpy(). |