From 46a3c0446f6a18ca1fa9e6995504bc7291d66495 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 21 Dec 2020 09:40:50 +0100 Subject: 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. --- bsps/arm/include/bsp/start.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'bsps/arm/include/bsp/start.h') 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(). -- cgit v1.2.3