bsp/tms570: Use shared bsp_start_hook_1()

Update #4982.
This commit is contained in:
Sebastian Huber
2023-12-21 15:16:49 +01:00
parent e9634471d9
commit d4c6def68b
3 changed files with 5 additions and 22 deletions

View File

@@ -5,7 +5,7 @@
*
* @ingroup RTEMSBSPsARMTMS570
*
* @brief This source file contains the start hooks implementation.
* @brief This source file contains the bsp_start_hook_0() implementation.
*/
/*
@@ -335,6 +335,8 @@ static RTEMS_USED void tms570_start_hook_0( void )
/* Configure system response to error conditions signaled to the ESM group1 */
tms570_esm_init();
tms570_emif_sdram_init();
#if 1
/*
* Do not depend on link register to be restored to
@@ -345,26 +347,6 @@ static RTEMS_USED void tms570_start_hook_0( void )
#endif
}
BSP_START_TEXT_SECTION void bsp_start_hook_1( void )
{
/* At this point we can use objects outside the .start section */
#if 0
/* Do not run attempt to initialize MPU when code is running from SDRAM */
if ( !tms570_running_from_sdram() ) {
/*
* MPU background areas setting has to be overlaid
* if execution of code is required from external memory/SDRAM.
* This region is non executable by default.
*/
_mpuInit_();
}
#endif
tms570_emif_sdram_init();
bsp_start_copy_sections();
bsp_start_clear_bss();
}
/*
* Chip specific list of peripherals which should be tested
* for functional RAM parity reporting

View File

@@ -5,7 +5,7 @@
*
* @ingroup RTEMSBSPsARMTMS570
*
* @brief This source file contains the start hooks implementation.
* @brief This source file contains the bsp_start_hook_1(0 implementation.
*/
/*

View File

@@ -14,6 +14,7 @@ install:
- bsps/arm/tms570/include/bsp/ti_herc/errata_SSWF021_45.h
links: []
source:
- bsps/arm/tms570/start/bspstarthooks.c
- bsps/arm/tms570/start/bspstarthooks-hwinit.c
- bsps/arm/tms570/start/errata_SSWF021_45.c
- bsps/arm/tms570/start/fail_notification.c