bsps/arm: Use shared empty bsp_start_hook_0()

Update #4982.
This commit is contained in:
Sebastian Huber
2023-12-21 15:16:47 +01:00
parent 5dd9bc96d4
commit 7427caa1ae
13 changed files with 48 additions and 29 deletions

View File

@@ -29,10 +29,6 @@
#include <bsp/start.h>
#include <bsp/arm-cp15-start.h>
BSP_START_TEXT_SECTION void bsp_start_hook_0(void)
{
}
BSP_START_TEXT_SECTION void bsp_start_hook_1(void)
{
bsp_start_copy_sections();

View File

@@ -9,11 +9,6 @@
#include <bsp.h>
#include <bsp/start.h>
void BSP_START_TEXT_SECTION bsp_start_hook_0(void)
{
/* Do nothing */
}
void BSP_START_TEXT_SECTION bsp_start_hook_1(void)
{
bsp_start_copy_sections();

View File

@@ -0,0 +1,42 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/**
* @file
*
* @ingroup RTEMSBSPsARMShared
*
* @brief This source file contains a bsp_start_hook_0() implentation which
* does nothing.
*/
/*
* Copyright (C) 2023 embedded brains GmbH & Co. KG
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <bsp/start.h>
void BSP_START_TEXT_SECTION bsp_start_hook_0( void )
{
/* Do nothing */
}

View File

@@ -9,11 +9,6 @@
#include <bsp.h>
#include <bsp/start.h>
void BSP_START_TEXT_SECTION bsp_start_hook_0(void)
{
/* Do nothing */
}
void BSP_START_TEXT_SECTION bsp_start_hook_1(void)
{
bsp_start_copy_sections();

View File

@@ -27,11 +27,6 @@
#include <bsp.h>
#include <bsp/start.h>
BSP_START_TEXT_SECTION void bsp_start_hook_0( void )
{
;
}
BSP_START_TEXT_SECTION void bsp_start_hook_1( void )
{
bsp_start_copy_sections();

View File

@@ -29,11 +29,6 @@
#include <bsp.h>
#include <bsp/start.h>
BSP_START_TEXT_SECTION void bsp_start_hook_0(void)
{
/* Do nothing */
}
BSP_START_TEXT_SECTION void bsp_start_hook_1(void)
{
bsp_start_copy_sections();

View File

@@ -33,11 +33,6 @@
#include <bsp.h>
#include <bsp/start.h>
BSP_START_TEXT_SECTION void bsp_start_hook_0(void)
{
/* Nothing to do */
}
BSP_START_TEXT_SECTION void bsp_start_hook_1(void)
{
bsp_start_copy_sections();

View File

@@ -47,6 +47,7 @@ source:
- bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c
- bsps/arm/shared/cp15/arm-cp15-set-ttb-entries.c
- bsps/arm/shared/start/bsp-start-memcpy.S
- bsps/arm/shared/start/bspstarthook0-empty.c
- bsps/shared/dev/btimer/btimer-cpucounter.c
- bsps/shared/dev/cpucounter/cpucounterfrequency.c
- bsps/shared/dev/cpucounter/cpucounterread.c

View File

@@ -38,6 +38,7 @@ source:
- bsps/arm/shared/irq/irq-dispatch-armv7m.c
- bsps/arm/shared/start/bsp-start-memcpy.S
- bsps/arm/shared/start/bspreset-armv7m.c
- bsps/arm/shared/start/bspstarthook0-empty.c
- bsps/shared/cache/nocache.c
- bsps/shared/dev/btimer/btimer-cpucounter.c
- bsps/shared/dev/cpucounter/cpucounterfrequency.c

View File

@@ -43,6 +43,7 @@ source:
- bsps/arm/shared/irq/irq-armv7m.c
- bsps/arm/shared/irq/irq-dispatch-armv7m.c
- bsps/arm/shared/start/bsp-start-memcpy.S
- bsps/arm/shared/start/bspstarthook0-empty.c
- bsps/arm/stm32f4/console/console-config.c
- bsps/arm/stm32f4/console/usart.c
- bsps/arm/stm32f4/i2c/i2c-config.c

View File

@@ -11,5 +11,6 @@ includes: []
install: []
links: []
source:
- bsps/arm/shared/start/bspstarthook0-empty.c
- bsps/arm/tms570/start/bspstarthooks.c
type: build

View File

@@ -65,6 +65,7 @@ source:
- bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c
- bsps/arm/shared/cp15/arm-cp15-set-ttb-entries.c
- bsps/arm/shared/start/bsp-start-memcpy.S
- bsps/arm/shared/start/bspstarthook0-empty.c
- bsps/arm/xen/console/console.c
- bsps/arm/xen/start/bspstart.c
- bsps/arm/xen/start/bspstarthooks.c

View File

@@ -87,6 +87,7 @@ source:
- bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c
- bsps/arm/shared/cp15/arm-cp15-set-ttb-entries.c
- bsps/arm/shared/start/bsp-start-memcpy.S
- bsps/arm/shared/start/bspstarthook0-empty.c
- bsps/arm/xilinx-zynqmp/console/console-config.c
- bsps/arm/xilinx-zynqmp/start/bspreset.c
- bsps/arm/xilinx-zynqmp/start/bspstart.c